lkml.org 
[lkml]   [2001]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: How to know HZ from userspace?
    Date
    In article <20010530203725.H27719@corellia.laforge.distro.conectiva>,
    Harald Welte <laforge@gnumonks.org> 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).

    Linus
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

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