git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
include
/
asm-sh
/
rwsem.h
diff --git
a/include/asm-sh/rwsem.h
b/include/asm-sh/rwsem.h
index
1be4337
..
0262d3d
100644
(file)
--- a/
include/asm-sh/rwsem.h
+++ b/
include/asm-sh/rwsem.h
@@
-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));
}
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 */
#endif /* __KERNEL__ */
#endif /* _ASM_SH_RWSEM_H */