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

Pavel Machek
2005-05-18T18:51:05Z

Hi!

> config HZ
> int
> default 100 if HZ_100
> default 250 if HZ_250
> default 1000 if HZ_1000
>
> and now you can just do
>
> #define HZ CONFIG_HZ
>
> or something. You can even maje the Kconfig parts be a separate Kconfig.HZ
> file, and have both the x86 and x86-64 Kconfig files just include the
> common part (since it's a generic issue, not even PC-related: we might
> want to allow things like 60Hz frequencies for CONFIG_EMBEDDED etc, and
> these choices are really valid on any system that allows for the timer to
> be reprogrammed)
>
> The above is obviously totally untested, but it doesn't look any more
> complex than having a fairly ugly (and much less user-friendly) check at
> compile-time.

Please don't do this, CONFIG_NO_IDLE_HZ patches are better solution,
and they worked okay last time I tried them.
Pavel