lkml.org 
[lkml]   [2006]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectNO_HZ Kconfig rework
I got NO_HZ working on ARM, but because the ARM tree already
extensively implements NO_IDLE_HZ I had to make NO_HZ a
completely seprate option.

Signed-Off-By: Daniel Walker <dwalker@mvista.com>

---
kernel/sysctl.c | 2 +-
kernel/time/Kconfig | 5 -----
kernel/timer.c | 2 +-
3 files changed, 2 insertions(+), 7 deletions(-)

Index: linux-2.6.17/kernel/sysctl.c
===================================================================
--- linux-2.6.17.orig/kernel/sysctl.c
+++ linux-2.6.17/kernel/sysctl.c
@@ -581,7 +581,7 @@ static ctl_table kern_table[] = {
.proc_handler = &proc_dointvec,
},
#endif
-#ifdef CONFIG_NO_IDLE_HZ
+#ifdef CONFIG_NO_HZ
{
.ctl_name = KERN_TIMEOUT_GRANULARITY,
.procname = "timeout_granularity",
Index: linux-2.6.17/kernel/time/Kconfig
===================================================================
--- linux-2.6.17.orig/kernel/time/Kconfig
+++ linux-2.6.17/kernel/time/Kconfig
@@ -17,11 +17,6 @@ config NO_HZ
only trigger on an as-needed basis both when the system is
busy and when the system is idle.

-config NO_IDLE_HZ
- bool
- default y
- depends on NO_HZ
-
config HIGH_RES_RESOLUTION
int "High Resolution Timer resolution (nanoseconds)"
depends on HIGH_RES_TIMERS
Index: linux-2.6.17/kernel/timer.c
===================================================================
--- linux-2.6.17.orig/kernel/timer.c
+++ linux-2.6.17/kernel/timer.c
@@ -484,7 +484,7 @@ static inline void __run_timers(tvec_bas
set_running_timer(base, NULL);
}

-#ifdef CONFIG_NO_IDLE_HZ
+#if defined(CONFIG_NO_IDLE_HZ) || defined(CONFIG_NO_HZ)
/*
* Find out when the next timer event is due to happen. This
* is used on S/390 to stop all activity when a cpus is idle.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-06-26 18:19    [W:0.137 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site