Messages in this thread | | | Date | Tue, 16 Mar 2004 07:33:31 +0100 | From | Arjan van de Ven <> | Subject | Re: finding out the value of HZ from userspace |
| |
On Tue, Mar 16, 2004 at 11:28:18AM +1100, Peter Williams wrote: > >Ugh that should say 100 on x86.... > >but.. > >param.h:# define USER_HZ 100 /* .. some user interfaces > >are in "ticks" */ > >param.h:# define CLOCKS_PER_SEC (USER_HZ) /* like times() */ > >..... > >that looks like 100 to me. > > > > This horrible hack of converting all tick values to 100 (from 1000) for > export to user space because a large number of user space programs > assume that HZ is 100 would NOT be necessary if there was a mechanism > whereby user space programs could find out how many ticks there are in a > second instead of having to make assumptions.
there is one. Nothing uses it (sysconf() provides this info)
[unhandled content-type:application/pgp-signature] | |