• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Kernel's clock rate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re(2): Kernel's clock rate
      • From: "Peter Lovell" <email@hidden>
References: 
 >Kernel's clock rate (From: Lasaro Camargos <email@hidden>)
 >Re: Kernel's clock rate (From: "Peter Lovell" <email@hidden>)

  • Prev by Date: Re: Kernel's clock rate
  • Next by Date: Re(2): Kernel's clock rate
  • Previous by thread: Re: Kernel's clock rate
  • Next by thread: Re(2): Kernel's clock rate
  • Index(es):
    • Date
    • Thread