diff options
author | Thomas Gleixner | 2008-01-30 13:30:34 +0100 |
---|---|---|
committer | Ingo Molnar | 2008-01-30 13:30:34 +0100 |
commit | a33fff3a033f2e8a930067ad608c21e1f86bffab (patch) | |
tree | cf689c288fd27991af739c4af6a5e30368ea4348 /include/asm-x86/spinlock_32.h | |
parent | x86: consolidate spinlock.h (diff) | |
download | kernel-qcow2-linux-a33fff3a033f2e8a930067ad608c21e1f86bffab.tar.gz kernel-qcow2-linux-a33fff3a033f2e8a930067ad608c21e1f86bffab.tar.xz kernel-qcow2-linux-a33fff3a033f2e8a930067ad608c21e1f86bffab.zip |
x86: fix asm constraints in spinlock_32/64.h
Use the correct constraints for the spinlock assembler functions.
read (modify) write functions need "+m" instead of "=m"
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/spinlock_32.h')
-rw-r--r-- | include/asm-x86/spinlock_32.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/spinlock_32.h b/include/asm-x86/spinlock_32.h index c42c3f12d7ce..fca124a1103d 100644 --- a/include/asm-x86/spinlock_32.h +++ b/include/asm-x86/spinlock_32.h @@ -99,7 +99,7 @@ static inline int __raw_spin_trylock(raw_spinlock_t *lock) static inline void __raw_spin_unlock(raw_spinlock_t *lock) { - asm volatile("movb $1,%0" : "+m" (lock->slock) :: "memory"); + asm volatile("movb $1,%0" : "=m" (lock->slock) :: "memory"); } #else |