]> err.no Git - linux-2.6/blobdiff - include/asm-sh/rwsem.h
[ARM] Sharp sl-5500 touchscreen support
[linux-2.6] / include / asm-sh / rwsem.h
index 1be4337f525950d795d1a28c945898d20154a1e8..0262d3d1e5e018a2ddb9e7913d48124eb4311a4e 100644 (file)
@@ -166,5 +166,10 @@ static inline int rwsem_atomic_update(int delta, struct rw_semaphore *sem)
        return atomic_add_return(delta, (atomic_t *)(&sem->count));
 }
 
+static inline int rwsem_is_locked(struct rw_semaphore *sem)
+{
+       return (sem->count != 0);
+}
+
 #endif /* __KERNEL__ */
 #endif /* _ASM_SH_RWSEM_H */