Re: HZ from userspace

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sven Wegener
Date: Wednesday, August 6, 2008 - 3:19 pm

On Wed, 6 Aug 2008, Piotr Jaroszy=F1ski wrote:

=2E

You can get the information via two ways. At compile time, that is the=20
variable CLK_TCK and this way has been obsoleted. The other way is at=20
runtime via sysconf(_SC_CLK_TCK) and that is still valid. You don't need=20
the real HZ, because the kernel converts it to USER_HZ, which is currently=
=20
100 on x86 for historic reasons.

Sven
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
HZ from userspace, Piotr Jaroszyński, (Wed Aug 6, 1:48 pm)
Re: HZ from userspace, Ray Lee, (Wed Aug 6, 2:49 pm)
Re: HZ from userspace, Piotr Jaroszyński, (Wed Aug 6, 3:07 pm)
Re: HZ from userspace, Ray Lee, (Wed Aug 6, 3:16 pm)
Re: HZ from userspace, Sven Wegener, (Wed Aug 6, 3:19 pm)
Re: HZ from userspace, Ray Lee, (Wed Aug 6, 3:20 pm)
Re: HZ from userspace, Piotr Jaroszyński, (Wed Aug 6, 3:20 pm)