]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/rwsem-spinlock.h
Pull pnpacpi into acpica branch
[linux-2.6-omap-h63xx.git] / include / linux / rwsem-spinlock.h
index b52a2af25f1fbda660a7b7bb7e922d6a09af7b94..f30f805080ae4a883c352a97183871f6a31c1ff2 100644 (file)
@@ -61,5 +61,10 @@ extern void FASTCALL(__up_read(struct rw_semaphore *sem));
 extern void FASTCALL(__up_write(struct rw_semaphore *sem));
 extern void FASTCALL(__downgrade_write(struct rw_semaphore *sem));
 
+static inline int rwsem_is_locked(struct rw_semaphore *sem)
+{
+       return (sem->activity != 0);
+}
+
 #endif /* __KERNEL__ */
 #endif /* _LINUX_RWSEM_SPINLOCK_H */