aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r--kernel/sched_fair.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 29b35a7ec571..566e3bb78ed9 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1339,7 +1339,8 @@ static int select_task_rq_fair(struct task_struct *p, int sd_flag, int wake_flag
1339 int sync = wake_flags & WF_SYNC; 1339 int sync = wake_flags & WF_SYNC;
1340 1340
1341 if (sd_flag & SD_BALANCE_WAKE) { 1341 if (sd_flag & SD_BALANCE_WAKE) {
1342 if (sched_feat(AFFINE_WAKEUPS)) 1342 if (sched_feat(AFFINE_WAKEUPS) &&
1343 cpumask_test_cpu(cpu, &p->cpus_allowed))
1343 want_affine = 1; 1344 want_affine = 1;
1344 new_cpu = prev_cpu; 1345 new_cpu = prev_cpu;
1345 } 1346 }