aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus/locking.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/litmus/locking.h')
-rw-r--r--include/litmus/locking.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/litmus/locking.h b/include/litmus/locking.h
index 4d7b870cb443..27eafd002556 100644
--- a/include/litmus/locking.h
+++ b/include/litmus/locking.h
@@ -1,6 +1,8 @@
1#ifndef LITMUS_LOCKING_H 1#ifndef LITMUS_LOCKING_H
2#define LITMUS_LOCKING_H 2#define LITMUS_LOCKING_H
3 3
4#include <linux/list.h>
5
4struct litmus_lock_ops; 6struct litmus_lock_ops;
5 7
6/* Generic base struct for LITMUS^RT userspace semaphores. 8/* Generic base struct for LITMUS^RT userspace semaphores.
@@ -9,6 +11,10 @@ struct litmus_lock_ops;
9struct litmus_lock { 11struct litmus_lock {
10 struct litmus_lock_ops *ops; 12 struct litmus_lock_ops *ops;
11 int type; 13 int type;
14
15#ifdef CONFIG_LITMUS_NESTED_LOCKING
16 struct list_head lock_chain;
17#endif
12}; 18};
13 19
14struct litmus_lock_ops { 20struct litmus_lock_ops {