aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/topology.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-09-16 02:28:30 -0400
committerIngo Molnar <mingo@elte.hu>2009-09-16 02:42:40 -0400
commit59abf02644c45f1591e1374ee7bb45dc757fcb88 (patch)
treece9cb0a4a57873b9d7d75cce4d28308019367192 /include/linux/topology.h
parente69b0f1b41c0e57bb1e29100b5810a5914efcb45 (diff)
sched: Add SD_PREFER_LOCAL
And turn it on for NUMA and MC domains. This improves locality in balancing decisions by keeping up to capacity amount of tasks local before looking for idle CPUs. (and twice the capacity if SD_POWERSAVINGS_BALANCE is set.) Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/topology.h')
-rw-r--r--include/linux/topology.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/topology.h b/include/linux/topology.h
index 936ab2b37683..a6614b0242a9 100644
--- a/include/linux/topology.h
+++ b/include/linux/topology.h
@@ -129,6 +129,7 @@ int arch_update_cpu_topology(void);
129 | 1*SD_BALANCE_FORK \ 129 | 1*SD_BALANCE_FORK \
130 | 1*SD_BALANCE_WAKE \ 130 | 1*SD_BALANCE_WAKE \
131 | 1*SD_WAKE_AFFINE \ 131 | 1*SD_WAKE_AFFINE \
132 | 1*SD_PREFER_LOCAL \
132 | 0*SD_SHARE_CPUPOWER \ 133 | 0*SD_SHARE_CPUPOWER \
133 | 1*SD_SHARE_PKG_RESOURCES \ 134 | 1*SD_SHARE_PKG_RESOURCES \
134 | 0*SD_SERIALIZE \ 135 | 0*SD_SERIALIZE \
@@ -161,6 +162,7 @@ int arch_update_cpu_topology(void);
161 | 1*SD_BALANCE_FORK \ 162 | 1*SD_BALANCE_FORK \
162 | 1*SD_BALANCE_WAKE \ 163 | 1*SD_BALANCE_WAKE \
163 | 1*SD_WAKE_AFFINE \ 164 | 1*SD_WAKE_AFFINE \
165 | 1*SD_PREFER_LOCAL \
164 | 0*SD_SHARE_CPUPOWER \ 166 | 0*SD_SHARE_CPUPOWER \
165 | 0*SD_SHARE_PKG_RESOURCES \ 167 | 0*SD_SHARE_PKG_RESOURCES \
166 | 0*SD_SERIALIZE \ 168 | 0*SD_SERIALIZE \