diff options
Diffstat (limited to 'include/asm-sparc/spinlock.h')
-rw-r--r-- | include/asm-sparc/spinlock.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-sparc/spinlock.h b/include/asm-sparc/spinlock.h index 1c75474ba1df..557d08959d2f 100644 --- a/include/asm-sparc/spinlock.h +++ b/include/asm-sparc/spinlock.h | |||
@@ -154,6 +154,10 @@ static inline int __raw_write_trylock(raw_rwlock_t *rw) | |||
154 | #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) | 154 | #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) |
155 | #define __raw_read_trylock(lock) generic__raw_read_trylock(lock) | 155 | #define __raw_read_trylock(lock) generic__raw_read_trylock(lock) |
156 | 156 | ||
157 | #define _raw_spin_relax(lock) cpu_relax() | ||
158 | #define _raw_read_relax(lock) cpu_relax() | ||
159 | #define _raw_write_relax(lock) cpu_relax() | ||
160 | |||
157 | #define __raw_read_can_lock(rw) (!((rw)->lock & 0xff)) | 161 | #define __raw_read_can_lock(rw) (!((rw)->lock & 0xff)) |
158 | #define __raw_write_can_lock(rw) (!(rw)->lock) | 162 | #define __raw_write_can_lock(rw) (!(rw)->lock) |
159 | 163 | ||