sched/rt: Use schedule_preempt_disabled()
[linux-3.10.git] / arch / parisc / kernel / process.c
index 62c60b8..d4b94b3 100644 (file)
@@ -71,9 +71,7 @@ void cpu_idle(void)
        while (1) {
                while (!need_resched())
                        barrier();
-               preempt_enable_no_resched();
-               schedule();
-               preempt_disable();
+               schedule_preempt_disabled();
                check_pgt_cache();
        }
 }