sched/rt: Use schedule_preempt_disabled()
[linux-3.10.git] / arch / mips / kernel / process.c
index 7955409..61f1cb4 100644 (file)
@@ -80,9 +80,7 @@ void __noreturn cpu_idle(void)
 #endif
                rcu_idle_exit();
                tick_nohz_idle_exit();
-               preempt_enable_no_resched();
-               schedule();
-               preempt_disable();
+               schedule_preempt_disabled();
        }
 }