diff options
-rw-r--r-- | kernel/sched_fair.c | 7 | ||||
-rw-r--r-- | kernel/sched_features.h | 1 |
2 files changed, 5 insertions, 3 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index aa7f84121016..cea5b82242ee 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -1526,9 +1526,10 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int sync) | |||
1526 | if (!sched_feat(WAKEUP_PREEMPT)) | 1526 | if (!sched_feat(WAKEUP_PREEMPT)) |
1527 | return; | 1527 | return; |
1528 | 1528 | ||
1529 | if (sched_feat(WAKEUP_OVERLAP) && (sync || | 1529 | if ((sched_feat(WAKEUP_SYNC) && sync) || |
1530 | (se->avg_overlap < sysctl_sched_migration_cost && | 1530 | (sched_feat(WAKEUP_OVERLAP) && |
1531 | pse->avg_overlap < sysctl_sched_migration_cost))) { | 1531 | (se->avg_overlap < sysctl_sched_migration_cost && |
1532 | pse->avg_overlap < sysctl_sched_migration_cost))) { | ||
1532 | resched_task(curr); | 1533 | resched_task(curr); |
1533 | return; | 1534 | return; |
1534 | } | 1535 | } |
diff --git a/kernel/sched_features.h b/kernel/sched_features.h index e2dc63a5815d..07c8250b404c 100644 --- a/kernel/sched_features.h +++ b/kernel/sched_features.h | |||
@@ -12,6 +12,7 @@ SCHED_FEAT(ASYM_GRAN, 1) | |||
12 | SCHED_FEAT(LB_BIAS, 1) | 12 | SCHED_FEAT(LB_BIAS, 1) |
13 | SCHED_FEAT(LB_WAKEUP_UPDATE, 1) | 13 | SCHED_FEAT(LB_WAKEUP_UPDATE, 1) |
14 | SCHED_FEAT(ASYM_EFF_LOAD, 1) | 14 | SCHED_FEAT(ASYM_EFF_LOAD, 1) |
15 | SCHED_FEAT(WAKEUP_SYNC, 0) | ||
15 | SCHED_FEAT(WAKEUP_OVERLAP, 0) | 16 | SCHED_FEAT(WAKEUP_OVERLAP, 0) |
16 | SCHED_FEAT(LAST_BUDDY, 1) | 17 | SCHED_FEAT(LAST_BUDDY, 1) |
17 | SCHED_FEAT(OWNER_SPIN, 1) | 18 | SCHED_FEAT(OWNER_SPIN, 1) |