sched: Avoid SMT siblings in select_idle_sibling() if possible
authorPeter Zijlstra <peterz@infradead.org>
Thu, 10 Nov 2011 12:01:10 +0000 (13:01 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 16 Nov 2011 07:43:43 +0000 (08:43 +0100)
commit4dcfe1025b513c2c1da5bf5586adb0e80148f612
tree1c0bf8ad4c09a3a618c471b6468873d8d8ed2117
parentf1c6f1a7eed963ed233ba4c8b6fa8addb86c6ddc
sched: Avoid SMT siblings in select_idle_sibling() if possible

Avoid select_idle_sibling() from picking a sibling thread if there's
an idle core that shares cache.

This fixes SMT balancing in the increasingly common case where there's
a shared cache core available to balance to.

Tested-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Link: http://lkml.kernel.org/r/1321350377.1421.55.camel@twins
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c