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

Next file: linux/include/asm-arm/arch-cl7500/system.h
Previous file: linux/include/asm-alpha/namei.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-arc/system.h linux/include/asm-arm/arch-arc/system.h
@@ -20,7 +20,11 @@
 
 #endif
 
-#define arch_do_idle()		do { } while (0)
+extern __inline__ void arch_idle(void)
+{
+	while (!current->need_resched && !hlt_counter);
+}
+
 #define arch_power_off()	do { } while (0)
 
 extern __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)