diff options
| author | Andrew Theurer <habanero@us.ibm.com> | 2005-01-07 21:44:34 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-01-07 21:44:34 -0800 |
| commit | 86b28714e0d56c203a4c8cfccc37535fcc073842 (patch) | |
| tree | 9dcd485b1f941466c22b3dfe7f336119d0c0d706 | |
| parent | 6a991f77ef744253cd108d9442eeb85c734cb489 (diff) | |
[PATCH] sched: newidle fix
Allow idle_balance to search an incresingly larger span of cpus to find a
cpu. Minor change, NODE_SD_INIT gets SD_BALANCE_NEWIDLE flag. This is
critical for x86_64, where there is only one cpu oer node. In the current
code, idle_balance for Opteron -never- works.
Signed-off-by: <habanero@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
| -rw-r--r-- | include/asm-i386/topology.h | 1 | ||||
| -rw-r--r-- | include/asm-ia64/topology.h | 1 | ||||
| -rw-r--r-- | include/asm-ppc64/topology.h | 1 | ||||
| -rw-r--r-- | include/asm-x86_64/topology.h | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-i386/topology.h b/include/asm-i386/topology.h index 9d4b8b793026..e1480e47b29a 100644 --- a/include/asm-i386/topology.h +++ b/include/asm-i386/topology.h @@ -80,6 +80,7 @@ static inline cpumask_t pcibus_to_cpumask(int bus) .per_cpu_gain = 100, \ .flags = SD_LOAD_BALANCE \ | SD_BALANCE_EXEC \ + | SD_BALANCE_NEWIDLE \ | SD_WAKE_IDLE \ | SD_WAKE_BALANCE, \ .last_balance = jiffies, \ diff --git a/include/asm-ia64/topology.h b/include/asm-ia64/topology.h index 812ec14ee033..21cf351fd05c 100644 --- a/include/asm-ia64/topology.h +++ b/include/asm-ia64/topology.h @@ -56,6 +56,7 @@ void build_cpu_to_node_map(void); .per_cpu_gain = 100, \ .flags = SD_LOAD_BALANCE \ | SD_BALANCE_EXEC \ + | SD_BALANCE_NEWIDLE \ | SD_WAKE_IDLE \ | SD_WAKE_BALANCE, \ .last_balance = jiffies, \ diff --git a/include/asm-ppc64/topology.h b/include/asm-ppc64/topology.h index 039a1e12732c..e2351a114d94 100644 --- a/include/asm-ppc64/topology.h +++ b/include/asm-ppc64/topology.h @@ -51,6 +51,7 @@ static inline int node_to_first_cpu(int node) .per_cpu_gain = 100, \ .flags = SD_LOAD_BALANCE \ | SD_BALANCE_EXEC \ + | SD_BALANCE_NEWIDLE \ | SD_WAKE_IDLE \ | SD_WAKE_BALANCE, \ .last_balance = jiffies, \ diff --git a/include/asm-x86_64/topology.h b/include/asm-x86_64/topology.h index 3feccc7330c1..557a702fcfff 100644 --- a/include/asm-x86_64/topology.h +++ b/include/asm-x86_64/topology.h @@ -52,6 +52,7 @@ static inline cpumask_t __pcibus_to_cpumask(int bus) .cache_nice_tries = 1, \ .per_cpu_gain = 100, \ .flags = SD_LOAD_BALANCE \ + | SD_BALANCE_NEWIDLE \ | SD_BALANCE_EXEC \ | SD_WAKE_IDLE \ | SD_WAKE_BALANCE, \ |
