Adding support for MOXA ART SoC. Testing port of linux-2.6.32.60-moxart.
[linux-3.6.7-moxart.git] / arch / arm / mach-gemini / idle.c
blob92bbd6bb600a37fdb11b7d8ef5427e48a02c176d
1 /*
2 * arch/arm/mach-gemini/idle.c
3 */
5 #include <linux/init.h>
6 #include <asm/system.h>
7 #include <asm/proc-fns.h>
9 static void gemini_idle(void)
12 * Because of broken hardware we have to enable interrupts or the CPU
13 * will never wakeup... Acctualy it is not very good to enable
14 * interrupts first since scheduler can miss a tick, but there is
15 * no other way around this. Platforms that needs it for power saving
16 * should call enable_hlt() in init code, since by default it is
17 * disabled.
19 local_irq_enable();
20 cpu_do_idle();
23 static int __init gemini_idle_init(void)
25 arm_pm_idle = gemini_idle;
26 return 0;
29 arch_initcall(gemini_idle_init);