]> err.no Git - linux-2.6/blobdiff - arch/avr32/kernel/process.c
[AVR32] Put cpu in sleep 0 when idle.
[linux-2.6] / arch / avr32 / kernel / process.c
index 0b4325946a41629cc7a4755a7c679311e85e688f..4f8d2d4747406d0aa4210d50a40424324adcc6d8 100644 (file)
@@ -19,6 +19,8 @@
 void (*pm_power_off)(void) = NULL;
 EXPORT_SYMBOL(pm_power_off);
 
+extern void cpu_idle_sleep(void);
+
 /*
  * This file handles the architecture-dependent parts of process handling..
  */
@@ -27,9 +29,8 @@ void cpu_idle(void)
 {
        /* endless idle loop with no priority at all */
        while (1) {
-               /* TODO: Enter sleep mode */
                while (!need_resched())
-                       cpu_relax();
+                       cpu_idle_sleep();
                preempt_enable_no_resched();
                schedule();
                preempt_disable();