Re(2): Kernel's clock rate
Re(2): Kernel's clock rate
- Subject: Re(2): Kernel's clock rate
- From: "Peter Lovell" <email@hidden>
- Date: Tue, 24 Jan 2006 13:24:21 -0500
>
>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 !!! */
>
Yes - this will be the same for all. I was actually thinking of the
value for CPU cycles per tick, or bus cycles - whichever the hardware
uses. This is the one which is set in a kext somewhere.
Regards.....Peter
_______________________________________________
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