]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: mach-exynos: use standard arch_idle()
authorNicolas Pitre <nicolas.pitre@linaro.org>
Sat, 17 Dec 2011 04:13:28 +0000 (23:13 -0500)
committerNicolas Pitre <nico@fluxnic.net>
Fri, 20 Jan 2012 23:55:08 +0000 (18:55 -0500)
This is equivalent and more similar to existing architectures.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
arch/arm/mach-exynos/common.c
arch/arm/mach-exynos/include/mach/system.h

index c59e18871006a601af8d061b58d3f205cb7d5d28..031c1e5b3dfe7281bc501bda41956c9093b593ea 100644 (file)
@@ -201,14 +201,6 @@ static struct map_desc exynos4_iodesc1[] __initdata = {
        },
 };
 
-static void exynos_idle(void)
-{
-       if (!need_resched())
-               cpu_do_idle();
-
-       local_irq_enable();
-}
-
 void exynos4_restart(char mode, const char *cmd)
 {
        __raw_writel(0x1, S5P_SWRESET);
@@ -467,10 +459,6 @@ early_initcall(exynos4_l2x0_cache_init);
 int __init exynos_init(void)
 {
        printk(KERN_INFO "EXYNOS: Initializing architecture\n");
-
-       /* set idle function */
-       pm_idle = exynos_idle;
-
        return device_register(&exynos4_dev);
 }
 
index 0063a6de3dc8243cfa4b7f713bdacb667012c745..bbaa99c764059111185a3ce721f61300b4b2c8e1 100644 (file)
@@ -15,6 +15,6 @@
 
 static void arch_idle(void)
 {
-       /* nothing here yet */
+       cpu_do_idle();
 }
 #endif /* __ASM_ARCH_SYSTEM_H */