sched: Queue a deboosted task to the head of the RT prio queue
[safe/jmp/linux-2.6] / kernel / sched.c
index f47560f..a56ead4 100644 (file)
@@ -4237,7 +4237,7 @@ void rt_mutex_setprio(struct task_struct *p, int prio)
        if (running)
                p->sched_class->set_curr_task(rq);
        if (on_rq) {
-               enqueue_task(rq, p, 0, false);
+               enqueue_task(rq, p, 0, oldprio < prio);
 
                check_class_changed(rq, p, prev_class, oldprio, running);
        }