summaryrefslogtreecommitdiff
path: root/tools/include/linux/rwsem.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/include/linux/rwsem.h')
-rw-r--r--tools/include/linux/rwsem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/include/linux/rwsem.h b/tools/include/linux/rwsem.h
index 83971b3cbfce..f8bffd4a987c 100644
--- a/tools/include/linux/rwsem.h
+++ b/tools/include/linux/rwsem.h
@@ -37,4 +37,8 @@ static inline int up_write(struct rw_semaphore *sem)
{
return pthread_rwlock_unlock(&sem->lock);
}
+
+#define down_read_nested(sem, subclass) down_read(sem)
+#define down_write_nested(sem, subclass) down_write(sem)
+
#endif /* _TOOLS_RWSEM_H */