|
@@ -34,29 +34,9 @@ extern void default_idle(void);
|
|
|
void (*pm_power_off)(void);
|
|
|
EXPORT_SYMBOL(pm_power_off);
|
|
|
|
|
|
-/*
|
|
|
- * The idle thread. There's no useful work to be
|
|
|
- * done, so just try to conserve power and have a
|
|
|
- * low exit latency (ie sit in a loop waiting for
|
|
|
- * somebody to say that they'd like to reschedule)
|
|
|
- */
|
|
|
-
|
|
|
-void cpu_idle (void)
|
|
|
+void arch_cpu_idle(void)
|
|
|
{
|
|
|
- /* endless idle loop with no priority at all */
|
|
|
- while (1) {
|
|
|
- rcu_idle_enter();
|
|
|
- while (!need_resched()) {
|
|
|
- /*
|
|
|
- * Mark this as an RCU critical section so that
|
|
|
- * synchronize_kernel() in the unload path waits
|
|
|
- * for our completion.
|
|
|
- */
|
|
|
- default_idle();
|
|
|
- }
|
|
|
- rcu_idle_exit();
|
|
|
- schedule_preempt_disabled();
|
|
|
- }
|
|
|
+ default_idle();
|
|
|
}
|
|
|
|
|
|
void hard_reset_now (void);
|