patch-2.3.51 linux/arch/i386/kernel/process.c

Next file: linux/arch/ia64/Makefile
Previous file: linux/arch/i386/kernel/pci-pc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.50/linux/arch/i386/kernel/process.c linux/arch/i386/kernel/process.c
@@ -75,11 +75,11 @@
 static void default_idle(void)
 {
 	if (current_cpu_data.hlt_works_ok && !hlt_counter) {
-		asm volatile("cli" : : : "memory");
+		__cli();
 		if (!current->need_resched)
-			asm volatile("sti ; hlt" : : : "memory");
+			safe_halt();
 		else
-			asm volatile("sti" : : : "memory");
+			__sti();
 	}
 }
 

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