diff options
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 0c59da7e3120..e3f3c10f7033 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -1249,6 +1249,8 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int sync) | |||
1249 | if (unlikely(se == pse)) | 1249 | if (unlikely(se == pse)) |
1250 | return; | 1250 | return; |
1251 | 1251 | ||
1252 | cfs_rq_of(pse)->next = pse; | ||
1253 | |||
1252 | /* | 1254 | /* |
1253 | * We can come here with TIF_NEED_RESCHED already set from new task | 1255 | * We can come here with TIF_NEED_RESCHED already set from new task |
1254 | * wake up path. | 1256 | * wake up path. |
@@ -1256,8 +1258,6 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int sync) | |||
1256 | if (test_tsk_need_resched(curr)) | 1258 | if (test_tsk_need_resched(curr)) |
1257 | return; | 1259 | return; |
1258 | 1260 | ||
1259 | cfs_rq_of(pse)->next = pse; | ||
1260 | |||
1261 | /* | 1261 | /* |
1262 | * Batch tasks do not preempt (their preemption is driven by | 1262 | * Batch tasks do not preempt (their preemption is driven by |
1263 | * the tick): | 1263 | * the tick): |