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, 1 insertions, 2 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 9357ecdb7f6b..35a5c649638b 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1434,8 +1434,7 @@ static int select_task_rq_fair(struct task_struct *p, int sd_flag, int wake_flag
1434 int sync = wake_flags & WF_SYNC; 1434 int sync = wake_flags & WF_SYNC;
1435 1435
1436 if (sd_flag & SD_BALANCE_WAKE) { 1436 if (sd_flag & SD_BALANCE_WAKE) {
1437 if (sched_feat(AFFINE_WAKEUPS) && 1437 if (cpumask_test_cpu(cpu, &p->cpus_allowed))
1438 cpumask_test_cpu(cpu, &p->cpus_allowed))
1439 want_affine = 1; 1438 want_affine = 1;
1440 new_cpu = prev_cpu; 1439 new_cpu = prev_cpu;
1441 } 1440 }