diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-08-08 15:02:19 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-08-08 15:02:19 +0100 |
commit | a288bd4a0fe5e47f58bfb4e3c6300f0d6d341e15 (patch) | |
tree | af5c11f0e56d163f7436cee96eace650b2abb182 | |
parent | 79202307efe0f93d58a73eb09cde2cddf3418bf5 (diff) | |
download | xen-a288bd4a0fe5e47f58bfb4e3c6300f0d6d341e15.tar.gz xen-a288bd4a0fe5e47f58bfb4e3c6300f0d6d341e15.tar.bz2 xen-a288bd4a0fe5e47f58bfb4e3c6300f0d6d341e15.zip |
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>
-rw-r--r-- | xen/include/asm-x86/spinlock.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/include/asm-x86/spinlock.h b/xen/include/asm-x86/spinlock.h index 59be73656b..550edcb4e5 100644 --- a/xen/include/asm-x86/spinlock.h +++ b/xen/include/asm-x86/spinlock.h @@ -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" |