aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/locking.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/locking.c')
-rw-r--r--litmus/locking.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/litmus/locking.c b/litmus/locking.c
index ab643475093f..d39afaeefffe 100644
--- a/litmus/locking.c
+++ b/litmus/locking.c
@@ -108,6 +108,19 @@ asmlinkage long sys_litmus_unlock(int lock_od)
108 return err; 108 return err;
109} 109}
110 110
111struct task_struct* waitqueue_first(wait_queue_head_t *wq)
112{
113 wait_queue_t *q;
114
115 if (waitqueue_active(wq)) {
116 q = list_entry(wq->task_list.next,
117 wait_queue_t, task_list);
118 return (struct task_struct*) q->private;
119 } else
120 return NULL;
121}
122
123
111#else 124#else
112 125
113struct fdso_ops generic_lock_ops = {}; 126struct fdso_ops generic_lock_ops = {};