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

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

diff -u --recursive --new-file v2.3.50/linux/arch/i386/kernel/apm.c linux/arch/i386/kernel/apm.c
@@ -590,11 +590,11 @@
 					continue;
 				if (hlt_counter)
 					continue;
-				asm volatile("cli" : : : "memory");
+				__cli();
 				if (!current->need_resched)
-					asm volatile("sti ; hlt" : : : "memory");
+					safe_halt();
 				else
-					asm volatile("sti" : : : "memory");
+					__sti();
 				continue;
 			}
 

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