aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-09-15 09:22:03 -0400
committerIngo Molnar <mingo@elte.hu>2009-09-15 10:51:23 -0400
commitb8a543ea5a5896830a9969bacfd047f9d15940b2 (patch)
tree45bae76596f2a51f3cc79d55c9c4e0da064a7a2c
parent0ec9fab3d186d9cbb00c0f694d4a260d07c198d9 (diff)
sched: Reduce forkexec_idx
If we're looking to place a new task, we might as well find the idlest position _now_, not 1 tick ago. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/ia64/include/asm/topology.h4
-rw-r--r--arch/sh/include/asm/topology.h2
-rw-r--r--arch/sparc/include/asm/topology_64.h2
-rw-r--r--arch/x86/include/asm/topology.h4
-rw-r--r--include/linux/topology.h4
5 files changed, 7 insertions, 9 deletions
diff --git a/arch/ia64/include/asm/topology.h b/arch/ia64/include/asm/topology.h
index 42f1673ec83f..569b9dafc78c 100644
--- a/arch/ia64/include/asm/topology.h
+++ b/arch/ia64/include/asm/topology.h
@@ -63,7 +63,7 @@ void build_cpu_to_node_map(void);
63 .idle_idx = 1, \ 63 .idle_idx = 1, \
64 .newidle_idx = 0, \ 64 .newidle_idx = 0, \
65 .wake_idx = 0, \ 65 .wake_idx = 0, \
66 .forkexec_idx = 1, \ 66 .forkexec_idx = 0, \
67 .flags = SD_LOAD_BALANCE \ 67 .flags = SD_LOAD_BALANCE \
68 | SD_BALANCE_NEWIDLE \ 68 | SD_BALANCE_NEWIDLE \
69 | SD_BALANCE_EXEC \ 69 | SD_BALANCE_EXEC \
@@ -89,7 +89,7 @@ void build_cpu_to_node_map(void);
89 .idle_idx = 2, \ 89 .idle_idx = 2, \
90 .newidle_idx = 0, \ 90 .newidle_idx = 0, \
91 .wake_idx = 0, \ 91 .wake_idx = 0, \
92 .forkexec_idx = 1, \ 92 .forkexec_idx = 0, \
93 .flags = SD_LOAD_BALANCE \ 93 .flags = SD_LOAD_BALANCE \
94 | SD_BALANCE_NEWIDLE \ 94 | SD_BALANCE_NEWIDLE \
95 | SD_BALANCE_EXEC \ 95 | SD_BALANCE_EXEC \
diff --git a/arch/sh/include/asm/topology.h b/arch/sh/include/asm/topology.h
index c8436771e31d..a8cc564b703d 100644
--- a/arch/sh/include/asm/topology.h
+++ b/arch/sh/include/asm/topology.h
@@ -17,7 +17,7 @@
17 .idle_idx = 2, \ 17 .idle_idx = 2, \
18 .newidle_idx = 0, \ 18 .newidle_idx = 0, \
19 .wake_idx = 0, \ 19 .wake_idx = 0, \
20 .forkexec_idx = 1, \ 20 .forkexec_idx = 0, \
21 .flags = SD_LOAD_BALANCE \ 21 .flags = SD_LOAD_BALANCE \
22 | SD_BALANCE_FORK \ 22 | SD_BALANCE_FORK \
23 | SD_BALANCE_EXEC \ 23 | SD_BALANCE_EXEC \
diff --git a/arch/sparc/include/asm/topology_64.h b/arch/sparc/include/asm/topology_64.h
index bc3a0930ed64..10b979d1de20 100644
--- a/arch/sparc/include/asm/topology_64.h
+++ b/arch/sparc/include/asm/topology_64.h
@@ -53,7 +53,7 @@ static inline int pcibus_to_node(struct pci_bus *pbus)
53 .idle_idx = 2, \ 53 .idle_idx = 2, \
54 .newidle_idx = 0, \ 54 .newidle_idx = 0, \
55 .wake_idx = 0, \ 55 .wake_idx = 0, \
56 .forkexec_idx = 1, \ 56 .forkexec_idx = 0, \
57 .flags = SD_LOAD_BALANCE \ 57 .flags = SD_LOAD_BALANCE \
58 | SD_BALANCE_FORK \ 58 | SD_BALANCE_FORK \
59 | SD_BALANCE_EXEC \ 59 | SD_BALANCE_EXEC \
diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h
index 7fafd1bc4149..589f12383d78 100644
--- a/arch/x86/include/asm/topology.h
+++ b/arch/x86/include/asm/topology.h
@@ -116,13 +116,11 @@ extern unsigned long node_remap_size[];
116 116
117# define SD_CACHE_NICE_TRIES 1 117# define SD_CACHE_NICE_TRIES 1
118# define SD_IDLE_IDX 1 118# define SD_IDLE_IDX 1
119# define SD_FORKEXEC_IDX 0
120 119
121#else 120#else
122 121
123# define SD_CACHE_NICE_TRIES 2 122# define SD_CACHE_NICE_TRIES 2
124# define SD_IDLE_IDX 2 123# define SD_IDLE_IDX 2
125# define SD_FORKEXEC_IDX 1
126 124
127#endif 125#endif
128 126
@@ -137,7 +135,7 @@ extern unsigned long node_remap_size[];
137 .idle_idx = SD_IDLE_IDX, \ 135 .idle_idx = SD_IDLE_IDX, \
138 .newidle_idx = 0, \ 136 .newidle_idx = 0, \
139 .wake_idx = 0, \ 137 .wake_idx = 0, \
140 .forkexec_idx = SD_FORKEXEC_IDX, \ 138 .forkexec_idx = 0, \
141 \ 139 \
142 .flags = 1*SD_LOAD_BALANCE \ 140 .flags = 1*SD_LOAD_BALANCE \
143 | 1*SD_BALANCE_NEWIDLE \ 141 | 1*SD_BALANCE_NEWIDLE \
diff --git a/include/linux/topology.h b/include/linux/topology.h
index 4298745615a5..936ab2b37683 100644
--- a/include/linux/topology.h
+++ b/include/linux/topology.h
@@ -121,7 +121,7 @@ int arch_update_cpu_topology(void);
121 .cache_nice_tries = 1, \ 121 .cache_nice_tries = 1, \
122 .busy_idx = 2, \ 122 .busy_idx = 2, \
123 .wake_idx = 0, \ 123 .wake_idx = 0, \
124 .forkexec_idx = 1, \ 124 .forkexec_idx = 0, \
125 \ 125 \
126 .flags = 1*SD_LOAD_BALANCE \ 126 .flags = 1*SD_LOAD_BALANCE \
127 | 1*SD_BALANCE_NEWIDLE \ 127 | 1*SD_BALANCE_NEWIDLE \
@@ -153,7 +153,7 @@ int arch_update_cpu_topology(void);
153 .idle_idx = 1, \ 153 .idle_idx = 1, \
154 .newidle_idx = 0, \ 154 .newidle_idx = 0, \
155 .wake_idx = 0, \ 155 .wake_idx = 0, \
156 .forkexec_idx = 1, \ 156 .forkexec_idx = 0, \
157 \ 157 \
158 .flags = 1*SD_LOAD_BALANCE \ 158 .flags = 1*SD_LOAD_BALANCE \
159 | 1*SD_BALANCE_NEWIDLE \ 159 | 1*SD_BALANCE_NEWIDLE \