patch-2.3.99-pre4 linux/include/asm-arm/arch-nexuspci/system.h

Next file: linux/include/asm-arm/arch-nexuspci/vmalloc.h
Previous file: linux/include/asm-arm/arch-ebsa285/vmalloc.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre3/linux/include/asm-arm/arch-nexuspci/system.h linux/include/asm-arm/arch-nexuspci/system.h
@@ -6,7 +6,12 @@
 #ifndef __ASM_ARCH_SYSTEM_H
 #define __ASM_ARCH_SYSTEM_H
 
-#define arch_do_idle()		cpu_do_idle()
+extern __inline__ void arch_idle(void)
+{
+	while (!current->need_resched && !hlt_counter)
+		cpu_do_idle(IDLE_WAIT_SLOW);
+}
+
 #define arch_reset(mode)	do { } while (0)
 #define arch_power_off()	do { } while (0)
 

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