Staging: Panel: panel: Fixed checkpatch line length warnings
[linux/fpc-iii.git] / arch / arm / mach-gemini / idle.c
blob87dff4f5059edc740c501118682ca8f95fb67e7f
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 enable it in init code, since by default it is
17 * disabled.
20 /* FIXME: Enabling interrupts here is racy! */
21 local_irq_enable();
22 cpu_do_idle();
25 static int __init gemini_idle_init(void)
27 arm_pm_idle = gemini_idle;
28 return 0;
31 arch_initcall(gemini_idle_init);