sched/rt: Use schedule_preempt_disabled()
[deliverable/linux.git] / arch / powerpc / kernel / idle.c
index 0a48bf5db6c84bfbf0152a9b3c52e83b9f43646d..65035141552b2543a2786d219346036a00a4ca3a 100644 (file)
@@ -101,11 +101,11 @@ void cpu_idle(void)
                ppc64_runlatch_on();
                rcu_idle_exit();
                tick_nohz_idle_exit();
-               preempt_enable_no_resched();
-               if (cpu_should_die())
+               if (cpu_should_die()) {
+                       preempt_enable_no_resched();
                        cpu_die();
-               schedule();
-               preempt_disable();
+               }
+               schedule_preempt_disabled();
        }
 }
 
This page took 0.024625 seconds and 5 git commands to generate.