diff options
author | Bob Breuer <breuerr@mc.net> | 2006-06-20 09:35:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-06-20 09:35:13 +0200 |
commit | 61fc12d8e5c94176e7c2e04a2eab4c6e36d8dd41 (patch) | |
tree | d58e41a70395f3638435ba9f09c4bf5fa994a38f /include/asm-sparc | |
parent | [SPARC]: Setup cpu_possible_map (diff) | |
download | linux-61fc12d8e5c94176e7c2e04a2eab4c6e36d8dd41.tar.xz linux-61fc12d8e5c94176e7c2e04a2eab4c6e36d8dd41.zip |
[SPARC]: Add missing rw can_lock macros
Fix a link failure by adding the missing can_lock macros for the rw
locks.
Signed-off-by: Bob Breuer <breuerr@mc.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc')
-rw-r--r-- | include/asm-sparc/spinlock.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-sparc/spinlock.h b/include/asm-sparc/spinlock.h index 3350c90c7869..1c75474ba1df 100644 --- a/include/asm-sparc/spinlock.h +++ b/include/asm-sparc/spinlock.h @@ -154,6 +154,9 @@ static inline int __raw_write_trylock(raw_rwlock_t *rw) #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) #define __raw_read_trylock(lock) generic__raw_read_trylock(lock) +#define __raw_read_can_lock(rw) (!((rw)->lock & 0xff)) +#define __raw_write_can_lock(rw) (!(rw)->lock) + #endif /* !(__ASSEMBLY__) */ #endif /* __SPARC_SPINLOCK_H */ |