diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-12-16 12:04:34 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-16 13:01:55 -0500 |
commit | e4f4288842ee12747e10c354d72be7d424c0b627 (patch) | |
tree | e9b066cc886e4b28db60b2626b682986f34a3bda /kernel | |
parent | e6c8fba7771563b2f3dfb96a78f36ec17e15bdf0 (diff) |
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: Mike Galbraith <efault@gmx.de>
LKML-Reference: <20091216170517.653578430@chello.nl>
CC: stable@kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched_fair.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 5bedf6e3ebf3..ec1d2715620c 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -1429,6 +1429,9 @@ static int select_task_rq_fair(struct task_struct *p, int sd_flag, int wake_flag | |||
1429 | } | 1429 | } |
1430 | 1430 | ||
1431 | for_each_domain(cpu, tmp) { | 1431 | for_each_domain(cpu, tmp) { |
1432 | if (!(tmp->flags & SD_LOAD_BALANCE)) | ||
1433 | continue; | ||
1434 | |||
1432 | /* | 1435 | /* |
1433 | * If power savings logic is enabled for a domain, see if we | 1436 | * If power savings logic is enabled for a domain, see if we |
1434 | * are not overloaded, if so, don't balance wider. | 1437 | * are not overloaded, if so, don't balance wider. |