aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus
diff options
context:
space:
mode:
Diffstat (limited to 'include/litmus')
-rw-r--r--include/litmus/fifo_lock.h1
-rw-r--r--include/litmus/locking.h6
-rw-r--r--include/litmus/prioq_lock.h1
3 files changed, 5 insertions, 3 deletions
diff --git a/include/litmus/fifo_lock.h b/include/litmus/fifo_lock.h
index 7f13863f11e6..0b2337b42155 100644
--- a/include/litmus/fifo_lock.h
+++ b/include/litmus/fifo_lock.h
@@ -30,6 +30,7 @@ static inline struct fifo_mutex* fifo_mutex_from_lock(struct litmus_lock* lock)
30 30
31#ifdef CONFIG_LITMUS_DGL_SUPPORT 31#ifdef CONFIG_LITMUS_DGL_SUPPORT
32int fifo_mutex_is_owner(struct litmus_lock *l, struct task_struct *t); 32int fifo_mutex_is_owner(struct litmus_lock *l, struct task_struct *t);
33struct task_struct* fifo_mutex_get_owner(struct litmus_lock *l);
33int fifo_mutex_dgl_lock(struct litmus_lock *l, dgl_wait_state_t* dgl_wait, wait_queue_t* wq_node); 34int fifo_mutex_dgl_lock(struct litmus_lock *l, dgl_wait_state_t* dgl_wait, wait_queue_t* wq_node);
34void fifo_mutex_enable_priority(struct litmus_lock *l, dgl_wait_state_t* dgl_wait); 35void fifo_mutex_enable_priority(struct litmus_lock *l, dgl_wait_state_t* dgl_wait);
35#endif 36#endif
diff --git a/include/litmus/locking.h b/include/litmus/locking.h
index 660bfc7f8174..cbc99ee54020 100644
--- a/include/litmus/locking.h
+++ b/include/litmus/locking.h
@@ -11,7 +11,7 @@ struct nested_info
11 struct litmus_lock *lock; 11 struct litmus_lock *lock;
12 struct task_struct *hp_waiter_eff_prio; 12 struct task_struct *hp_waiter_eff_prio;
13 struct task_struct **hp_waiter_ptr; 13 struct task_struct **hp_waiter_ptr;
14 struct task_struct **owner_ptr; 14// struct task_struct **owner_ptr;
15 struct binheap_node hp_binheap_node; 15 struct binheap_node hp_binheap_node;
16}; 16};
17 17
@@ -71,8 +71,7 @@ void select_next_lock(dgl_wait_state_t* dgl_wait /*, struct litmus_lock* prev_lo
71 71
72void init_dgl_waitqueue_entry(wait_queue_t *wq_node, dgl_wait_state_t* dgl_wait); 72void init_dgl_waitqueue_entry(wait_queue_t *wq_node, dgl_wait_state_t* dgl_wait);
73int dgl_wake_up(wait_queue_t *wq_node, unsigned mode, int sync, void *key); 73int dgl_wake_up(wait_queue_t *wq_node, unsigned mode, int sync, void *key);
74void __waitqueue_dgl_remove_first(wait_queue_head_t *wq, dgl_wait_state_t** dgl_wait, struct task_struct **task); 74struct task_struct* __waitqueue_dgl_remove_first(wait_queue_head_t *wq, dgl_wait_state_t** dgl_wait);
75
76 75
77int __attempt_atomic_dgl_acquire(struct litmus_lock *cur_lock, dgl_wait_state_t *dgl_wait); 76int __attempt_atomic_dgl_acquire(struct litmus_lock *cur_lock, dgl_wait_state_t *dgl_wait);
78#endif 77#endif
@@ -131,6 +130,7 @@ struct litmus_lock_ops {
131 raw_spinlock_t* (*get_dgl_spin_lock)(struct litmus_lock *l); 130 raw_spinlock_t* (*get_dgl_spin_lock)(struct litmus_lock *l);
132 int (*dgl_lock)(struct litmus_lock *l, dgl_wait_state_t* dgl_wait, wait_queue_t* wq_node); 131 int (*dgl_lock)(struct litmus_lock *l, dgl_wait_state_t* dgl_wait, wait_queue_t* wq_node);
133 int (*is_owner)(struct litmus_lock *l, struct task_struct *t); 132 int (*is_owner)(struct litmus_lock *l, struct task_struct *t);
133 struct task_struct* (*get_owner)(struct litmus_lock *l);
134 void (*enable_priority)(struct litmus_lock *l, dgl_wait_state_t* dgl_wait); 134 void (*enable_priority)(struct litmus_lock *l, dgl_wait_state_t* dgl_wait);
135 135
136 int (*dgl_can_quick_lock)(struct litmus_lock *l, struct task_struct *t); 136 int (*dgl_can_quick_lock)(struct litmus_lock *l, struct task_struct *t);
diff --git a/include/litmus/prioq_lock.h b/include/litmus/prioq_lock.h
index f3c11d241991..5c135ef0bdc6 100644
--- a/include/litmus/prioq_lock.h
+++ b/include/litmus/prioq_lock.h
@@ -32,6 +32,7 @@ static inline struct prioq_mutex* prioq_mutex_from_lock(struct litmus_lock* lock
32 32
33#ifdef CONFIG_LITMUS_DGL_SUPPORT 33#ifdef CONFIG_LITMUS_DGL_SUPPORT
34int prioq_mutex_is_owner(struct litmus_lock *l, struct task_struct *t); 34int prioq_mutex_is_owner(struct litmus_lock *l, struct task_struct *t);
35struct task_struct* prioq_mutex_get_owner(struct litmus_lock *l);
35int prioq_mutex_dgl_lock(struct litmus_lock *l, dgl_wait_state_t* dgl_wait, wait_queue_t* wq_node); 36int prioq_mutex_dgl_lock(struct litmus_lock *l, dgl_wait_state_t* dgl_wait, wait_queue_t* wq_node);
36void prioq_mutex_enable_priority(struct litmus_lock *l, dgl_wait_state_t* dgl_wait); 37void prioq_mutex_enable_priority(struct litmus_lock *l, dgl_wait_state_t* dgl_wait);
37void prioq_mutex_dgl_quick_lock(struct litmus_lock *l, struct litmus_lock *cur_lock, 38void prioq_mutex_dgl_quick_lock(struct litmus_lock *l, struct litmus_lock *cur_lock,