[lkml]   [2001]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: How to know HZ from userspace?
    In article <20010530203725.H27719@corellia.laforge.distro.conectiva>,
    Harald Welte <> wrote:
    >Is there any way to read out the compile-time HZ value of the kernel?

    In 2.4.x, you'll get it on the stack as one of the ELF auxilliary
    entries (AT_CLKTCK).

    Strictly speaking that's the "frequency at which 'times()' counts", ie
    the kernel CLOCKS_PER_SEC, not HZ. But from a user perspective the two
    should hopefully always be the same (if any of the /proc fields etc
    should really use CLOCKS_PER_SEC, not HZ).

    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

     \ /
      Last update: 2005-03-22 12:54    [W:0.043 / U:0.356 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site