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 a851c25..6a2a7f2 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 1b2f2c5..1ec8d6c 100644 (file)
@@ -8,6 +8,7 @@
 
 static inline void arch_idle(void)
 {
+       cpu_do_idle();
 }
 
 #endif