Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt

George Anzinger
2005-07-13T23:11:09Z

Lee Revell wrote:
> On Wed, 2005-07-13 at 14:16 -0700, Chris Wedgwood wrote:
>
>>Both can be detected from you .config and we could see HZ as needed
>>there and everyone else could avoid this surely?

>
> Does anyone object to setting HZ at boot? I suspect nothing else will
> make everyone happy.
>
This will really mess up the jiffie_to_* and *_to_jiffie conversions. They rely
in a rather large way on the complier doing all the heavy lifting. If HZ is a
variable we introduce a LOT of runtime overhead here. (Try make kernel/itimer.i
and look for jiffies_to_t* and friends.)

--
George Anzinger george@mvista.com
HRT (High-res-timers): http://sourceforge.net/projects/high-res-timers/