From: Nick Piggin 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 --- 25-akpm/kernel/sched.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff -puN kernel/sched.c~sched2-cleanup-wake_idle kernel/sched.c --- 25/kernel/sched.c~sched2-cleanup-wake_idle 2005-03-17 23:47:57.000000000 -0800 +++ 25-akpm/kernel/sched.c 2005-03-17 23:47:57.000000000 -0800 @@ -928,14 +928,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; } _