sched/rt: Use schedule_preempt_disabled()
[deliverable/linux.git] / arch / sparc / kernel / process_64.c
index 3739a06a76cbfdbd93a0dde7bf0494e6b8e74285..ab9a292682130375825b1e2eff14a81aca598db6 100644 (file)
@@ -95,22 +95,22 @@ void cpu_idle(void)
        set_thread_flag(TIF_POLLING_NRFLAG);
 
        while(1) {
-               tick_nohz_stop_sched_tick(1);
+               tick_nohz_idle_enter();
+               rcu_idle_enter();
 
                while (!need_resched() && !cpu_is_offline(cpu))
                        sparc64_yield(cpu);
 
-               tick_nohz_restart_sched_tick();
-
-               preempt_enable_no_resched();
+               rcu_idle_exit();
+               tick_nohz_idle_exit();
 
 #ifdef CONFIG_HOTPLUG_CPU
-               if (cpu_is_offline(cpu))
+               if (cpu_is_offline(cpu)) {
+                       preempt_enable_no_resched();
                        cpu_play_dead();
+               }
 #endif
-
-               schedule();
-               preempt_disable();
+               schedule_preempt_disabled();
        }
 }
 
This page took 0.078072 seconds and 5 git commands to generate.