Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
[firefly-linux-kernel-4.4.55.git] / kernel / sched / core.c
index d0c4209bb836a8ccc13688bf8eb0a21e48892f03..3d5f6f6d14c2f152dedb56393bedd2c312724c34 100644 (file)
@@ -3049,6 +3049,8 @@ void rt_mutex_setprio(struct task_struct *p, int prio)
        } else {
                if (dl_prio(oldprio))
                        p->dl.dl_boosted = 0;
+               if (rt_prio(oldprio))
+                       p->rt.timeout = 0;
                p->sched_class = &fair_sched_class;
        }