diff --git a/kernel/sched.c b/kernel/sched.c index 908335e1781af5f3435665a377f88fd025cdc4f8..d62b759753f35c7ee76fc9b73f841e59a57b60c2 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -7087,8 +7087,10 @@ void sched_move_task(struct task_struct *tsk) rq = task_rq_lock(tsk, &flags); - if (tsk->sched_class != &fair_sched_class) + if (tsk->sched_class != &fair_sched_class) { + set_task_cfs_rq(tsk); goto done; + } update_rq_clock(rq);