Re: HZ question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/13/05, Mark Hounschell <[email protected]> wrote:
> I need to know the kernels value of HZ in a userland app.
> 
> getconf CLK_TCK
>       and
> hz = sysconf (_SC_CLK_TCK)
> 
> both seem to return CLOCKS_PER_SEC which is defined as USER_HZ which is
> defined as 100.
> 
> include/asm/param.h:
> 
> #ifdef __KERNEL__
> # define HZ       1000   /* Internal kernel timer frequency */
> # define USER_HZ  100    /* .. some user interfaces are in "ticks" */
> # define CLOCKS_PER_SEC  (USER_HZ)       /* like times() */
> #endif
> 
> Thanks in advance for any help
> Mark

simply zgrep HZ= /proc/config.gz
on my box, I get CONFIG_HZ=1000
-- 
Coywolf Qi Hunt
http://sosdg.org/~coywolf/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux