From: Nick Piggin Date: Sat, 25 Jun 2005 21:57:06 +0000 (-0700) Subject: [PATCH] sched: cleanup wake_idle X-Git-Tag: v2.6.13-rc1~68^2~158 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e0f364f4069f76a3613a797c388832822d179076;p=linux-2.6-omap-h63xx.git [PATCH] sched: cleanup wake_idle New sched-domains code means we don't get spans with offline CPUs in them. Signed-off-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/sched.c b/kernel/sched.c index 76080d142e3..86be13ee500 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -927,14 +927,14 @@ static int wake_idle(int cpu, task_t *p) for_each_domain(cpu, sd) { if (sd->flags & SD_WAKE_IDLE) { - cpus_and(tmp, sd->span, cpu_online_map); - cpus_and(tmp, tmp, p->cpus_allowed); + cpus_and(tmp, sd->span, p->cpus_allowed); for_each_cpu_mask(i, tmp) { if (idle_cpu(i)) return i; } } - else break; + else + break; } return cpu; }