diff options
Diffstat (limited to 'include/linux/rwsem.h')
-rw-r--r-- | include/linux/rwsem.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/rwsem.h b/include/linux/rwsem.h index 67dbb57508b1..6e56006b2cb6 100644 --- a/include/linux/rwsem.h +++ b/include/linux/rwsem.h | |||
@@ -57,15 +57,13 @@ extern struct rw_semaphore *rwsem_down_write_failed_killable(struct rw_semaphore | |||
57 | extern struct rw_semaphore *rwsem_wake(struct rw_semaphore *); | 57 | extern struct rw_semaphore *rwsem_wake(struct rw_semaphore *); |
58 | extern struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem); | 58 | extern struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem); |
59 | 59 | ||
60 | /* Include the arch specific part */ | ||
61 | #include <asm/rwsem.h> | ||
62 | |||
63 | /* In all implementations count != 0 means locked */ | 60 | /* In all implementations count != 0 means locked */ |
64 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | 61 | static inline int rwsem_is_locked(struct rw_semaphore *sem) |
65 | { | 62 | { |
66 | return atomic_long_read(&sem->count) != 0; | 63 | return atomic_long_read(&sem->count) != 0; |
67 | } | 64 | } |
68 | 65 | ||
66 | #define RWSEM_UNLOCKED_VALUE 0L | ||
69 | #define __RWSEM_INIT_COUNT(name) .count = ATOMIC_LONG_INIT(RWSEM_UNLOCKED_VALUE) | 67 | #define __RWSEM_INIT_COUNT(name) .count = ATOMIC_LONG_INIT(RWSEM_UNLOCKED_VALUE) |
70 | #endif | 68 | #endif |
71 | 69 | ||