Bläddra i källkod

ARM: mach-ixp4xx: properly disable CPU idle call

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Nicolas Pitre 14 år sedan
förälder
incheckning
12d2b4e5f0
2 ändrade filer med 6 tillägg och 5 borttagningar
  1. 6 0
      arch/arm/mach-ixp4xx/common.c
  2. 0 5
      arch/arm/mach-ixp4xx/include/mach/system.h

+ 6 - 0
arch/arm/mach-ixp4xx/common.c

@@ -236,6 +236,12 @@ void __init ixp4xx_init_irq(void)
 {
 	int i = 0;
 
+	/*
+	 * ixp4xx does not implement the XScale PWRMODE register
+	 * so it must not call cpu_do_idle().
+	 */
+	disable_hlt();
+
 	/* Route all sources to IRQ instead of FIQ */
 	*IXP4XX_ICLR = 0x0;
 

+ 0 - 5
arch/arm/mach-ixp4xx/include/mach/system.h

@@ -10,10 +10,5 @@
  */
 static inline void arch_idle(void)
 {
-	/* ixp4xx does not implement the XScale PWRMODE register,
-	 * so it must not call cpu_do_idle() here.
-	 */
-#if 0
 	cpu_do_idle();
-#endif
 }