[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20060807141224.4e3ba738.rdunlap@xenotime.net>
Date: Mon, 7 Aug 2006 14:12:24 -0700
From: "Randy.Dunlap" <rdunlap@...otime.net>
To: lkml <linux-kernel@...r.kernel.org>
Cc: akpm <akpm@...l.org>, torvalds <torvalds@...l.org>,
colpatch@...ibm.com
Subject: [PATCH 1/9] Replace ARCH_HAS_SCHED_WAKE_IDLE with CONFIG_SCHED_SMT
From: Randy Dunlap <rdunlap@...otime.net>
Replace ARCH_HAS_SCHED_WAKE_IDLE with CONFIG_SCHED_SMT.
Move it from header files to Kconfig space.
Signed-off-by: Randy Dunlap <rdunlap@...otime.net>
---
include/linux/topology.h | 6 ++----
kernel/sched.c | 2 +-
2 files changed, 3 insertions(+), 5 deletions(-)
--- linux-2618-rc4-arch.orig/include/linux/topology.h
+++ linux-2618-rc4-arch/include/linux/topology.h
@@ -80,10 +80,8 @@
* and allow arch-specific performance tuning of sched_domains.
*/
#ifdef CONFIG_SCHED_SMT
-/* MCD - Do we really need this? It is always on if CONFIG_SCHED_SMT is,
- * so can't we drop this in favor of CONFIG_SCHED_SMT?
- */
-#define ARCH_HAS_SCHED_WAKE_IDLE
+/* CONFIG_SCHED_SMT is synonymous with old ARCH_HAS_SCHED_WAKE_IDLE */
+
/* Common values for SMT siblings */
#ifndef SD_SIBLING_INIT
#define SD_SIBLING_INIT (struct sched_domain) { \
--- linux-2618-rc4-arch.orig/kernel/sched.c
+++ linux-2618-rc4-arch/kernel/sched.c
@@ -1315,7 +1315,7 @@ nextlevel:
*
* Returns the CPU we should wake onto.
*/
-#if defined(ARCH_HAS_SCHED_WAKE_IDLE)
+#ifdef CONFIG_SCHED_SMT
static int wake_idle(int cpu, struct task_struct *p)
{
cpumask_t tmp;
---
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists