Re: [PATCH 07/16] kconfig-dynamic-frequency.diff

From: Kyle Moffett
Date: Sun Apr 01 2007 - 14:40:26 EST


On Apr 01, 2007, at 14:15:20, Jan Engelhardt wrote:

Make HZ fully configurable through menuconfig.

Already posted at http://lkml.org/lkml/2006/6/18/111

Instead of that, what about something like this instead: NOTE: I know my mailer mangles diffs and this one was hand-edited based on Jan's diff from within my mailer so it probably doesn't apply, but it's enough to point out the idea:

diff --fast -Ndpru linux-2.6.17-rc6~/kernel/Kconfig.hz linux-2.6.17- rc6+/kernel/Kconfig.hz
--- linux-2.6.17-rc6~/kernel/Kconfig.hz 2006-06-06 02:57:02.000000000 +0200
+++ linux-2.6.17-rc6+/kernel/Kconfig.hz 2006-06-16 17:15:46.884794000 +0200
@@ -36,10 +36,17 @@
1000 HZ is the preferred choice for desktop systems and other
systems requiring fast interactive responses to events.

+ config HZ_CUSTOM
+ bool "Custom HZ"
+ help
+ This allows you to specify your own custom timer frequency, if
+ the default options are not satisfactory for your use.
+
endchoice

config HZ
- int
+ int if !HZ_CUSTOM
+ int "Customized HZ value" if HZ_CUSTOM
default 100 if HZ_100
default 250 if HZ_250
default 1000 if HZ_1000

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/