aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index f47560ff334..a56ead42d65 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4237,7 +4237,7 @@ void rt_mutex_setprio(struct task_struct *p, int prio)
4237 if (running) 4237 if (running)
4238 p->sched_class->set_curr_task(rq); 4238 p->sched_class->set_curr_task(rq);
4239 if (on_rq) { 4239 if (on_rq) {
4240 enqueue_task(rq, p, 0, false); 4240 enqueue_task(rq, p, 0, oldprio < prio);
4241 4241
4242 check_class_changed(rq, p, prev_class, oldprio, running); 4242 check_class_changed(rq, p, prev_class, oldprio, running);
4243 } 4243 }