| Date | Wed, 16 Dec 2009 18:04:34 +0100 | From | Peter Zijlstra <> | Subject | [PATCH 04/12] sched: select_task_rq_fair() must honour SD_LOAD_BALANCE |
| |
We should skip !SD_LOAD_BALANCE domains.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> CC: stable@kernel.org --- kernel/sched_fair.c | 3 +++ 1 file changed, 3 insertions(+)
Index: linux-2.6/kernel/sched_fair.c =================================================================== --- linux-2.6.orig/kernel/sched_fair.c +++ linux-2.6/kernel/sched_fair.c @@ -1429,6 +1429,9 @@ static int select_task_rq_fair(struct ta } for_each_domain(cpu, tmp) { + if (!(tmp->flags & SD_LOAD_BALANCE)) + continue; + /* * If power savings logic is enabled for a domain, see if we * are not overloaded, if so, don't balance wider. --
|