sysctl: fix write access to dmesg_restrict/kptr_restrict
[pandora-kernel.git] / kernel / sched_rt.c
index 583a136..78fcacf 100644 (file)
@@ -1388,6 +1388,11 @@ static int push_rt_task(struct rq *rq)
        if (!next_task)
                return 0;
 
+#ifdef __ARCH_WANT_INTERRUPTS_ON_CTXSW
+       if (unlikely(task_running(rq, next_task)))
+               return 0;
+#endif
+
 retry:
        if (unlikely(next_task == rq->curr)) {
                WARN_ON(1);