patch-2.4.22 linux-2.4.22/include/asm-arm/arch-ebsa285/system.h

Next file: linux-2.4.22/include/asm-arm/arch-epxa/dma.h
Previous file: linux-2.4.22/include/asm-arm/arch-ebsa285/memory.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/include/asm-arm/arch-ebsa285/system.h linux-2.4.22/include/asm-arm/arch-ebsa285/system.h
@@ -13,26 +13,9 @@
 #include <asm/leds.h>
 #include <asm/mach-types.h>
 
-static void arch_idle(void)
+static inline void arch_idle(void)
 {
-	unsigned long start_idle;
-
-	start_idle = jiffies;
-
-	do {
-		if (current->need_resched || hlt_counter)
-			goto slow_out;
-		cpu_do_idle(IDLE_WAIT_FAST);
-	} while (time_before(jiffies, start_idle + HZ/50));
-
-	cpu_do_idle(IDLE_CLOCK_SLOW);
-
-	while (!current->need_resched && !hlt_counter) {
-		cpu_do_idle(IDLE_WAIT_SLOW);
-	}
-
-	cpu_do_idle(IDLE_CLOCK_FAST);
-slow_out:
+	cpu_do_idle();
 }
 
 static inline void arch_reset(char mode)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)