ARM: mach-s5p64x0: move idle handler from pm_idle to arm_pm_idle
authorNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 4 Jan 2012 22:24:25 +0000 (17:24 -0500)
committerNicolas Pitre <nico@fluxnic.net>
Fri, 20 Jan 2012 23:55:08 +0000 (18:55 -0500)
Signed-off-by: Nicolas Pitre <nico@linaro.org>
arch/arm/mach-s5p64x0/common.c
arch/arm/mach-s5p64x0/include/mach/system.h

index 52b89a3..9143f8b 100644 (file)
@@ -146,15 +146,12 @@ static void s5p64x0_idle(void)
 {
        unsigned long val;
 
-       if (!need_resched()) {
-               val = __raw_readl(S5P64X0_PWR_CFG);
-               val &= ~(0x3 << 5);
-               val |= (0x1 << 5);
-               __raw_writel(val, S5P64X0_PWR_CFG);
+       val = __raw_readl(S5P64X0_PWR_CFG);
+       val &= ~(0x3 << 5);
+       val |= (0x1 << 5);
+       __raw_writel(val, S5P64X0_PWR_CFG);
 
-               cpu_do_idle();
-       }
-       local_irq_enable();
+       cpu_do_idle();
 }
 
 /*
@@ -286,7 +283,7 @@ int __init s5p64x0_init(void)
        printk(KERN_INFO "S5P64X0(S5P6440/S5P6450): Initializing architecture\n");
 
        /* set idle function */
-       pm_idle = s5p64x0_idle;
+       arm_pm_idle = s5p64x0_idle;
 
        return device_register(&s5p64x0_dev);
 }
index cf26e09..5772310 100644 (file)
@@ -15,7 +15,7 @@
 
 static void arch_idle(void)
 {
-       /* nothing here yet */
+       cpu_do_idle();
 }
 
 #endif /* __ASM_ARCH_SYSTEM_H */