Re: Kernel's clock rate
Re: Kernel's clock rate
- Subject: Re: Kernel's clock rate
- From: Lasaro Camargos <email@hidden>
- Date: Tue, 24 Jan 2006 16:54:40 +0100
On Jan 24, 2006, at 1:30 PM, Peter Lovell wrote:
Do you have any clue of where in XNU's code is set the kernel's clock
rate? I looked for the standard HZ define but didn't find.
I've never looked for it myself, but I would expect it to be set by
one
of the kexts. xnu is the same for every machine, and the hardware-
specific customization is done by kexts. I don't know which one(s) -
perhaps someone else on the list can comment.
I think I found where it's defined: bsd/kern/kern_clock.c
As it is a variable and not a constant, you might be right about a
kext changing it, but it's not happening by now, as the value I set
there remained.
There is a nice comment in the definition line.
int hz = 100; /* GET RID OF THIS !!! */
int tick = (1000000 / 100); /* GET RID OF THIS !!! */
Cheers
Lásaro. _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden