commit | fb6bc9a40733ccef7e6b8ebdd284ccdc10f19852 | [log] [tgz] |
---|---|---|
author | Branden J. Moore <bjmoor@sandia.gov> | Fri Aug 02 14:12:29 2013 -0600 |
committer | Branden J. Moore <bjmoor@sandia.gov> | Fri Aug 02 14:12:29 2013 -0600 |
tree | 1fb664c8f02ea28657f377199afb14c0218e811c | |
parent | 5ccaeac59071ed8ec25530944e9338cc2e770eb6 [diff] |
Switch to ja instruction from jne in x86 spin_lock
diff --git a/spinlock_x86.h b/spinlock_x86.h index 0da99d8..b816269 100644 --- a/spinlock_x86.h +++ b/spinlock_x86.h
@@ -29,10 +29,10 @@ ( "\n1:\t" \ "cmpb $0,%1\n\t" \ - "jne 1b\n\t" \ + "ja 1b\n\t" \ "xchgb %b0, %1\n\t" \ "cmpb $0,%0\n" \ - "jne 1b\n\t" + "ja 1b\n\t" :"=q"(oldval), "=m"(*lock) : "0"(1) : "memory");