diff options
Diffstat (limited to 'include/asm-s390/rwsem.h')
-rw-r--r-- | include/asm-s390/rwsem.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-s390/rwsem.h b/include/asm-s390/rwsem.h index 8c0cebb..0422a08 100644 --- a/include/asm-s390/rwsem.h +++ b/include/asm-s390/rwsem.h @@ -351,5 +351,10 @@ static inline long rwsem_atomic_update(long delta, struct rw_semaphore *sem) return new; } +static inline int rwsem_is_locked(struct rw_semaphore *sem) +{ + return (sem->count != 0); +} + #endif /* __KERNEL__ */ #endif /* _S390_RWSEM_H */ |