patch-2.3.49 linux/include/asm-i386/spinlock.h

Next file: linux/include/asm-ia64/pgtable.h
Previous file: linux/include/asm-i386/socket.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.48/linux/include/asm-i386/spinlock.h linux/include/asm-i386/spinlock.h
@@ -53,6 +53,7 @@
 	".section .text.lock,\"ax\"\n" \
 	"2:\t" \
 	"testb $1,%0\n\t" \
+	"rep;nop\n\t" \
 	"jne 2b\n\t" \
 	"jmp 1b\n" \
 	".previous"

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