projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NFS: make 2 functions static
[powerpc.git]
/
include
/
asm-x86_64
/
spinlock.h
diff --git
a/include/asm-x86_64/spinlock.h
b/include/asm-x86_64/spinlock.h
index
5d8a5e3
..
8d34219
100644
(file)
--- a/
include/asm-x86_64/spinlock.h
+++ b/
include/asm-x86_64/spinlock.h
@@
-31,15
+31,19
@@
"jmp 1b\n" \
LOCK_SECTION_END
"jmp 1b\n" \
LOCK_SECTION_END
+#define __raw_spin_lock_string_up \
+ "\n\tdecl %0"
+
#define __raw_spin_unlock_string \
"movl $1,%0" \
:"=m" (lock->slock) : : "memory"
static inline void __raw_spin_lock(raw_spinlock_t *lock)
{
#define __raw_spin_unlock_string \
"movl $1,%0" \
:"=m" (lock->slock) : : "memory"
static inline void __raw_spin_lock(raw_spinlock_t *lock)
{
- __asm__ __volatile__(
- __raw_spin_lock_string
- :"=m" (lock->slock) : : "memory");
+ alternative_smp(
+ __raw_spin_lock_string,
+ __raw_spin_lock_string_up,
+ "=m" (lock->slock) : : "memory");
}
#define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock)
}
#define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock)