[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: adjust placement of pause insn in _raw_spin_lock()



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1218204139 -3600
# Node ID 4e3316ed1af512bd14a2ef975455cee6168f4bec
# Parent  a189e68441fe8f63838e303899afbbb829b1143f
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@xxxxxxxxxx>
---
 xen/include/asm-x86/spinlock.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r a189e68441fe -r 4e3316ed1af5 xen/include/asm-x86/spinlock.h
--- a/xen/include/asm-x86/spinlock.h    Fri Aug 08 15:00:01 2008 +0100
+++ b/xen/include/asm-x86/spinlock.h    Fri Aug 08 15:02:19 2008 +0100
@@ -23,8 +23,8 @@ static inline void _raw_spin_lock(spinlo
         "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"

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.