sched: Move p->nr_cpus_allowed check to select_task_rq()
[deliverable/linux.git] / kernel / sched / core.c
index 3ccdce13484c0fc7b49b9b040d01845689752136..d44d0c59122bb90c1ead871c24b26f8073d21995 100644 (file)
@@ -1411,7 +1411,8 @@ out:
 static inline
 int select_task_rq(struct task_struct *p, int cpu, int sd_flags, int wake_flags)
 {
-       cpu = p->sched_class->select_task_rq(p, cpu, sd_flags, wake_flags);
+       if (p->nr_cpus_allowed > 1)
+               cpu = p->sched_class->select_task_rq(p, cpu, sd_flags, wake_flags);
 
        /*
         * In order not to call set_task_cpu() on a blocking task we need
This page took 0.02713 seconds and 5 git commands to generate.