Re: PATCH: /proc/sys/kernel/hz

From: Ulrich Drepper (
Date: Mon Jul 16 2001 - 11:50:35 EST

Rolf Fokkens <> writes:

> Some software (like procps) needs the HZ constant in the kernel. It's
> sometimes determined by counting jiffies during a second. The attached patch
> just "publishes" the HZ constant in /proc/sys/kernel/hz.

And what is wrong with

  getconf CLK_TCK

or programmatically

  hz = sysconf (_SC_CLK_TCK);

Update your libc and this info will come from the kernel.

---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at   `------------------------
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jul 23 2001 - 21:00:07 EST