sched: Make select_fallback_rq() cpuset friendly
[linux-2.6-block.git] / kernel / sched.c
index 11119deffa48e496b1b1a20ec4250d8c80326d69..9a38c7a24ed7fab79ca55d1cbac136074c6c6017 100644 (file)
@@ -2300,9 +2300,7 @@ static int select_fallback_rq(int cpu, struct task_struct *p)
 
        /* No more Mr. Nice Guy. */
        if (unlikely(dest_cpu >= nr_cpu_ids)) {
-               cpumask_copy(&p->cpus_allowed, cpu_possible_mask);
-               dest_cpu = cpumask_any(cpu_active_mask);
-
+               dest_cpu = cpuset_cpus_allowed_fallback(p);
                /*
                 * Don't tell them about moving exiting tasks or
                 * kernel threads (both mm NULL), since they never