x86: adjust placement of pause insn in _raw_spin_lock()

React to lock becoming available as quickly as possible.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
This commit is contained in:
Keir Fraser committed 2008-08-08 15:02:19 +01:00
1 parent 79202307ef
commit a288bd4a0f
1 file changed
+2 -2
+2 -2
View File
@@ -23,8 +23,8 @@ static inline void _raw_spin_lock(spinlock_t *lock)
"1: lock; decb %0 \n"
" js 2f \n"
".section .text.lock,\"ax\"\n"
"2: cmpb $0,%0 \n"
" rep; nop \n"
"2: rep; nop \n"
" cmpb $0,%0 \n"
" jle 2b \n"
" jmp 1b \n"
".previous"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.