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.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 97682f925ed5..1d99535b0928 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1658,7 +1658,6 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int wake_
1658 struct task_struct *curr = rq->curr; 1658 struct task_struct *curr = rq->curr;
1659 struct sched_entity *se = &curr->se, *pse = &p->se; 1659 struct sched_entity *se = &curr->se, *pse = &p->se;
1660 struct cfs_rq *cfs_rq = task_cfs_rq(curr); 1660 struct cfs_rq *cfs_rq = task_cfs_rq(curr);
1661 int sync = wake_flags & WF_SYNC;
1662 int scale = cfs_rq->nr_running >= sched_nr_latency; 1661 int scale = cfs_rq->nr_running >= sched_nr_latency;
1663 1662
1664 if (unlikely(rt_prio(p->prio))) 1663 if (unlikely(rt_prio(p->prio)))
@@ -1691,9 +1690,6 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int wake_
1691 if (unlikely(curr->policy == SCHED_IDLE)) 1690 if (unlikely(curr->policy == SCHED_IDLE))
1692 goto preempt; 1691 goto preempt;
1693 1692
1694 if (sched_feat(WAKEUP_SYNC) && sync)
1695 goto preempt;
1696
1697 if (!sched_feat(WAKEUP_PREEMPT)) 1693 if (!sched_feat(WAKEUP_PREEMPT))
1698 return; 1694 return;
1699 1695