aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/locking.c
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2011-01-28 19:06:11 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2011-02-01 16:30:42 -0500
commite705aa52df711112d434ccc87ee5fb5838c205a2 (patch)
treedae3f630e54fc50d08d1657845cca2f9e7ed0c66 /litmus/locking.c
parente593c9dbe858c82e284ff85e625837ae3ab32f1c (diff)
PSN-EDF: re-implement FMLP support
Implement the partitioned FMLP with priority boosting based on the generic lock API.
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 = {};