sched/rt: Use schedule_preempt_disabled()
[linux-3.10.git] / arch / mn10300 / kernel / process.c
index 28eec31..cac401d 100644 (file)
@@ -123,9 +123,7 @@ void cpu_idle(void)
                        idle();
                }
 
-               preempt_enable_no_resched();
-               schedule();
-               preempt_disable();
+               schedule_preempt_disabled();
        }
 }