]> Pileus Git - ~andy/linux/commitdiff
ARM: mach-s5pv210: 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:07 +0000 (18:55 -0500)
This is equivalent and more similar to existing architectures.

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

index 9c1bcdcc12c3bfd8e479f21fe66b2d393be49616..4c9e9027df9aed2cbd0314ec1cebc0d80a1d3530 100644 (file)
@@ -142,14 +142,6 @@ static struct map_desc s5pv210_iodesc[] __initdata = {
        }
 };
 
-static void s5pv210_idle(void)
-{
-       if (!need_resched())
-               cpu_do_idle();
-
-       local_irq_enable();
-}
-
 void s5pv210_restart(char mode, const char *cmd)
 {
        __raw_writel(0x1, S5P_SWRESET);
@@ -247,10 +239,6 @@ core_initcall(s5pv210_core_init);
 int __init s5pv210_init(void)
 {
        printk(KERN_INFO "S5PV210: Initializing architecture\n");
-
-       /* set idle function */
-       pm_idle = s5pv210_idle;
-
        return device_register(&s5pv210_dev);
 }
 
index bf288ced860ae480abca89579c5f11bb15acf6db..50248f281e27bdaae9b9a94f08f56e530b5f7959 100644 (file)
@@ -15,7 +15,7 @@
 
 static void arch_idle(void)
 {
-       /* nothing here yet */
+       cpu_do_idle();
 }
 
 #endif /* __ASM_ARCH_SYSTEM_H */