patch-2.1.40 linux/arch/i386/lib/locks.S

Next file: linux/arch/m68k/Makefile
Previous file: linux/arch/i386/kernel/i386_ksyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.39/linux/arch/i386/lib/locks.S linux/arch/i386/lib/locks.S
@@ -14,6 +14,7 @@
 	lock
 	btsl	$0, SYMBOL_NAME(kernel_flag)
 	jnc	3f
+	sti
 2:
 	btl	%dl, SYMBOL_NAME(smp_invalidate_needed)
 	jnc	0f
@@ -27,6 +28,7 @@
 0:
 	btl	$0, SYMBOL_NAME(kernel_flag)
 	jc	2b
+	cli
 	jmp	1b
 
 3:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov