ARM: mach-shark: properly disable CPU idle call
authorNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 3 Aug 2011 16:00:02 +0000 (12:00 -0400)
committerNicolas Pitre <nico@fluxnic.net>
Fri, 20 Jan 2012 23:55:17 +0000 (18:55 -0500)
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
arch/arm/mach-shark/core.c
arch/arm/mach-shark/include/mach/system.h

index a851c254ad6c8a79bc00204063021c1bcba2e118..6a2a7f2c255708e80d909c7026e15413a797eba4 100644 (file)
@@ -149,10 +149,16 @@ static struct sys_timer shark_timer = {
        .init           = shark_timer_init,
 };
 
+static void shark_init_early(void)
+{
+       disable_hlt();
+}
+
 MACHINE_START(SHARK, "Shark")
        /* Maintainer: Alexander Schulz */
        .atag_offset    = 0x3000,
        .map_io         = shark_map_io,
+       .init_early     = shark_init_early,
        .init_irq       = shark_init_irq,
        .timer          = &shark_timer,
        .dma_zone_size  = SZ_4M,
index 1b2f2c5050a82f350da71310afeda15fbffff8cd..1ec8d6c383d3b08490cff23c0a46e9358839b716 100644 (file)
@@ -8,6 +8,7 @@
 
 static inline void arch_idle(void)
 {
+       cpu_do_idle();
 }
 
 #endif