]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9dcb5ccd2e2054ad916dd5fc06bab4af7f4cb588
tree1c0bf8ad4c09a3a618c471b6468873d8d8ed2117
parent6c3d015afcd13f5f0304bda8cdc14a424d406f1b
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