|
@@ -52,24 +52,6 @@
|
|
|
extern void queued_read_lock_slowpath(struct qrwlock *lock, u32 cnts);
|
|
|
extern void queued_write_lock_slowpath(struct qrwlock *lock);
|
|
|
|
|
|
-/**
|
|
|
- * queued_read_can_lock- would read_trylock() succeed?
|
|
|
- * @lock: Pointer to queue rwlock structure
|
|
|
- */
|
|
|
-static inline int queued_read_can_lock(struct qrwlock *lock)
|
|
|
-{
|
|
|
- return !(atomic_read(&lock->cnts) & _QW_WMASK);
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * queued_write_can_lock- would write_trylock() succeed?
|
|
|
- * @lock: Pointer to queue rwlock structure
|
|
|
- */
|
|
|
-static inline int queued_write_can_lock(struct qrwlock *lock)
|
|
|
-{
|
|
|
- return !atomic_read(&lock->cnts);
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* queued_read_trylock - try to acquire read lock of a queue rwlock
|
|
|
* @lock : Pointer to queue rwlock structure
|
|
@@ -169,8 +151,6 @@ static inline void queued_write_unlock(struct qrwlock *lock)
|
|
|
* Remapping rwlock architecture specific functions to the corresponding
|
|
|
* queue rwlock functions.
|
|
|
*/
|
|
|
-#define arch_read_can_lock(l) queued_read_can_lock(l)
|
|
|
-#define arch_write_can_lock(l) queued_write_can_lock(l)
|
|
|
#define arch_read_lock(l) queued_read_lock(l)
|
|
|
#define arch_write_lock(l) queued_write_lock(l)
|
|
|
#define arch_read_trylock(l) queued_read_trylock(l)
|