diff options
Diffstat (limited to 'include/asm-sparc64/spinlock.h')
-rw-r--r-- | include/asm-sparc64/spinlock.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-sparc64/spinlock.h b/include/asm-sparc64/spinlock.h index bd5ffc76bc7e..0006fe9f8c7a 100644 --- a/include/asm-sparc64/spinlock.h +++ b/include/asm-sparc64/spinlock.h | |||
@@ -241,6 +241,10 @@ static int inline __write_trylock(raw_rwlock_t *lock) | |||
241 | #define __raw_read_can_lock(rw) (!((rw)->lock & 0x80000000UL)) | 241 | #define __raw_read_can_lock(rw) (!((rw)->lock & 0x80000000UL)) |
242 | #define __raw_write_can_lock(rw) (!(rw)->lock) | 242 | #define __raw_write_can_lock(rw) (!(rw)->lock) |
243 | 243 | ||
244 | #define _raw_spin_relax(lock) cpu_relax() | ||
245 | #define _raw_read_relax(lock) cpu_relax() | ||
246 | #define _raw_write_relax(lock) cpu_relax() | ||
247 | |||
244 | #endif /* !(__ASSEMBLY__) */ | 248 | #endif /* !(__ASSEMBLY__) */ |
245 | 249 | ||
246 | #endif /* !(__SPARC64_SPINLOCK_H) */ | 250 | #endif /* !(__SPARC64_SPINLOCK_H) */ |