Skip to contentSkip to conversation

tickless idle cpus: sysctl support

PATCH New Srivatsa Vaddagiri 1 participant 1 message Apr 7, 2006 Proc sysctl

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 tickless idle cpus: sysctl support

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.

---

 linux-2.6.17-rc1-root/kernel/sysctl.c |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
kernel/sysctl.c renamed from kernel/sysctl.c~sysctl +10 -10
diff -puN kernel/sysctl.c~sysctl kernel/sysctl.c
@@ -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",

_

Signature · 2 lines
Regards,
vatsa