public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* HZ question
@ 2005-09-13 12:48 Mark Hounschell
  2005-09-13 13:46 ` linux-os (Dick Johnson)
                   ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Mark Hounschell @ 2005-09-13 12:48 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2005-09-15 20:34 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-13 12:48 HZ question Mark Hounschell
2005-09-13 13:46 ` linux-os (Dick Johnson)
2005-09-13 14:00   ` Mark Hounschell
2005-09-13 14:20     ` Tim Schmielau
2005-09-13 15:05       ` Mark Hounschell
2005-09-13 16:01         ` Tim Schmielau
2005-09-13 16:41           ` Mark Hounschell
2005-09-13 16:47           ` Mark Hounschell
2005-09-13 18:38             ` Stefan Smietanowski
2005-09-13 19:17               ` Mark Hounschell
2005-09-13 23:19                 ` Daniel Barkalow
2005-09-13 17:34         ` john stultz
2005-09-13 19:15           ` Mark Hounschell
2005-09-14  4:15           ` George Anzinger
2005-09-13 20:13   ` jdow
2005-09-13 20:38     ` linux-os (Dick Johnson)
2005-09-15  1:29       ` Lee Revell
2005-09-13 14:07 ` Tim Schmielau
2005-09-14  4:00 ` Coywolf Qi Hunt
2005-09-15  1:20   ` Lee Revell
2005-09-15 16:16     ` Joe Bob Spamtest
2005-09-15 20:19       ` Valdis.Kletnieks
2005-09-15 20:34         ` Jesper Juhl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox