[PATCH 3/4] tickless idle cpus: sysctl support
Srivatsa Vaddagiri
vatsa at in.ibm.com
Fri Apr 7 16:32:08 EST 2006
During initial phase, it is useful to have sysctl control to turn on/off
tickless idle CPU feature at run time. Patch below, against
2.6.17-rc1-mm1, provides that support for all architectures.
Signed-off-by: Srivatsa Vaddagiri <vatsa at in.ibm.com>
---
linux-2.6.17-rc1-root/kernel/sysctl.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff -puN kernel/sysctl.c~sysctl kernel/sysctl.c
--- linux-2.6.17-rc1/kernel/sysctl.c~sysctl 2006-04-07 11:29:28.000000000 +0530
+++ linux-2.6.17-rc1-root/kernel/sysctl.c 2006-04-07 11:29:28.000000000 +0530
@@ -554,6 +554,16 @@ static ctl_table kern_table[] = {
.extra1 = &minolduid,
.extra2 = &maxolduid,
},
+#ifdef CONFIG_NO_IDLE_HZ
+ {
+ .ctl_name = KERN_HZ_TIMER,
+ .procname = "hz_timer",
+ .data = &sysctl_hz_timer,
+ .maxlen = sizeof(int),
+ .mode = 0644,
+ .proc_handler = &proc_dointvec,
+ },
+#endif
#ifdef CONFIG_S390
#ifdef CONFIG_MATHEMU
{
@@ -565,16 +575,6 @@ static ctl_table kern_table[] = {
.proc_handler = &proc_dointvec,
},
#endif
-#ifdef CONFIG_NO_IDLE_HZ
- {
- .ctl_name = KERN_HZ_TIMER,
- .procname = "hz_timer",
- .data = &sysctl_hz_timer,
- .maxlen = sizeof(int),
- .mode = 0644,
- .proc_handler = &proc_dointvec,
- },
-#endif
{
.ctl_name = KERN_S390_USER_DEBUG_LOGGING,
.procname = "userprocess_debug",
_
--
Regards,
vatsa
More information about the Linuxppc-dev
mailing list