mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Walker <dwalker@dwalker1.mvista.com>
To: tglx@linutronix.de
Cc: mingo@elte.hu
Cc: linux-kernel@vger.kernel.org
Subject: NO_HZ Kconfig rework
Date: Mon, 26 Jun 2006 09:16:37 -0700	[thread overview]
Message-ID: <200606261616.k5QGGbem016569@dwalker1.mvista.com> (raw)

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.

             reply	other threads:[~2006-06-26 16:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-26 16:16 Daniel Walker [this message]
2006-06-29  9:42 ` Pavel Machek
2006-06-29 14:22   ` Daniel Walker
2006-06-29 14:27   ` Thomas Gleixner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200606261616.k5QGGbem016569@dwalker1.mvista.com \
    --to=dwalker@dwalker1.mvista.com \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®