From: Peter Zijlstra Date: Wed, 16 Dec 2009 17:04:34 +0000 (+0100) Subject: sched: Select_task_rq_fair() must honour SD_LOAD_BALANCE X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e4f4288842ee12747e10c354d72be7d424c0b627;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git sched: Select_task_rq_fair() must honour SD_LOAD_BALANCE We should skip !SD_LOAD_BALANCE domains. Signed-off-by: Peter Zijlstra Cc: Mike Galbraith LKML-Reference: <20091216170517.653578430@chello.nl> CC: stable@kernel.org Signed-off-by: Ingo Molnar --- 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 } 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.