ARM: mach-s5pc100: 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-s5pc100/common.c
arch/arm/mach-s5pc100/include/mach/system.h

index c9095730a7f58ec31f4cf34ee3863f32a848dd6a..ff71e2d467c606375a23e63e38c61f088a8f68d3 100644 (file)
@@ -129,14 +129,6 @@ static struct map_desc s5pc100_iodesc[] __initdata = {
        }
 };
 
-static void s5pc100_idle(void)
-{
-       if (!need_resched())
-               cpu_do_idle();
-
-       local_irq_enable();
-}
-
 /*
  * s5pc100_map_io
  *
@@ -210,10 +202,6 @@ core_initcall(s5pc100_core_init);
 int __init s5pc100_init(void)
 {
        printk(KERN_INFO "S5PC100: Initializing architecture\n");
-
-       /* set idle function */
-       pm_idle = s5pc100_idle;
-
        return device_register(&s5pc100_dev);
 }
 
index afc96c2985188525c50ae0c1b594399ee2f12156..a09cff95764ad9bbbd3888e1490dd87b8f74eada 100644 (file)
@@ -13,7 +13,7 @@
 
 static void arch_idle(void)
 {
-       /* nothing here yet */
+       cpu_do_idle();
 }
 
 #endif /* __ASM_ARCH_IRQ_H */