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 cea5b82242ee..4f6356e70ad6 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1501,7 +1501,8 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int sync)
1501 */ 1501 */
1502 if (sched_feat(LAST_BUDDY) && likely(se->on_rq && curr != rq->idle)) 1502 if (sched_feat(LAST_BUDDY) && likely(se->on_rq && curr != rq->idle))
1503 set_last_buddy(se); 1503 set_last_buddy(se);
1504 set_next_buddy(pse); 1504 if (sched_feat(NEXT_BUDDY))
1505 set_next_buddy(pse);
1505 1506
1506 /* 1507 /*
1507 * We can come here with TIF_NEED_RESCHED already set from new task 1508 * We can come here with TIF_NEED_RESCHED already set from new task