ARM: dts: exynos5440: cpus/cpu nodes dts updates
[deliverable/linux.git] / arch / cris / kernel / process.c
index 104ff4dd9b98dd1aa0c00177ae1e83d2f8138a54..b78498eb079b14e2930208d963c5e9dd87f57a1f 100644 (file)
 
 //#define DEBUG
 
-/*
- * The hlt_counter, disable_hlt and enable_hlt is just here as a hook if
- * there would ever be a halt sequence (for power save when idle) with
- * some largish delay when halting or resuming *and* a driver that can't
- * afford that delay.  The hlt_counter would then be checked before
- * executing the halt sequence, and the driver marks the unhaltable
- * region by enable_hlt/disable_hlt.
- */
-
-int cris_hlt_counter=0;
-
-void disable_hlt(void)
-{
-       cris_hlt_counter++;
-}
-
-EXPORT_SYMBOL(disable_hlt);
-
-void enable_hlt(void)
-{
-       cris_hlt_counter--;
-}
-
-EXPORT_SYMBOL(enable_hlt);
 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);
This page took 0.038332 seconds and 5 git commands to generate.