diff options
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index da87385683cc..e4d4483fd617 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -1389,6 +1389,8 @@ static int select_task_rq_fair(struct task_struct *p, int sd_flag, int wake_flag | |||
1389 | 1389 | ||
1390 | if (candidate == -1 || candidate == cpu) { | 1390 | if (candidate == -1 || candidate == cpu) { |
1391 | for_each_cpu(i, sched_domain_span(tmp)) { | 1391 | for_each_cpu(i, sched_domain_span(tmp)) { |
1392 | if (!cpumask_test_cpu(i, &p->cpus_allowed)) | ||
1393 | continue; | ||
1392 | if (!cpu_rq(i)->cfs.nr_running) { | 1394 | if (!cpu_rq(i)->cfs.nr_running) { |
1393 | candidate = i; | 1395 | candidate = i; |
1394 | break; | 1396 | break; |