sched: Add SD_PREFER_LOCAL
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 16 Sep 2009 06:28:30 +0000 (08:28 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 16 Sep 2009 06:42:40 +0000 (08:42 +0200)
commit59abf02644c45f1591e1374ee7bb45dc757fcb88
treece9cb0a4a57873b9d7d75cce4d28308019367192
parente69b0f1b41c0e57bb1e29100b5810a5914efcb45
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>
include/linux/sched.h
include/linux/topology.h
kernel/sched_fair.c