diff options
Diffstat (limited to 'include/litmus/sched_plugin.h')
-rw-r--r-- | include/litmus/sched_plugin.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/litmus/sched_plugin.h b/include/litmus/sched_plugin.h index ae11e3ac9266..8e5167970340 100644 --- a/include/litmus/sched_plugin.h +++ b/include/litmus/sched_plugin.h | |||
@@ -58,6 +58,13 @@ typedef void (*task_exit_t) (struct task_struct *); | |||
58 | typedef long (*allocate_lock_t) (struct litmus_lock **lock, int type, | 58 | typedef long (*allocate_lock_t) (struct litmus_lock **lock, int type, |
59 | void* __user config); | 59 | void* __user config); |
60 | 60 | ||
61 | typedef void (*increase_prio_t)(struct task_struct* t, struct task_struct* prio_inh); | ||
62 | typedef void (*decrease_prio_t)(struct task_struct* t, struct task_struct* prio_inh); | ||
63 | typedef void (*nested_increase_prio_t)(struct task_struct* t, struct task_struct* prio_inh, | ||
64 | raw_spinlock_t *to_unlock, unsigned long irqflags); | ||
65 | typedef void (*nested_decrease_prio_t)(struct task_struct* t, struct task_struct* prio_inh, | ||
66 | raw_spinlock_t *to_unlock, unsigned long irqflags); | ||
67 | |||
61 | typedef raw_spinlock_t* (*get_dgl_spinlock_t) (struct task_struct *t); | 68 | typedef raw_spinlock_t* (*get_dgl_spinlock_t) (struct task_struct *t); |
62 | 69 | ||
63 | /********************* sys call backends ********************/ | 70 | /********************* sys call backends ********************/ |
@@ -97,8 +104,13 @@ struct sched_plugin { | |||
97 | #ifdef CONFIG_LITMUS_LOCKING | 104 | #ifdef CONFIG_LITMUS_LOCKING |
98 | /* locking protocols */ | 105 | /* locking protocols */ |
99 | allocate_lock_t allocate_lock; | 106 | allocate_lock_t allocate_lock; |
107 | increase_prio_t increase_prio; | ||
108 | decrease_prio_t decrease_prio; | ||
109 | #endif | ||
110 | #ifdef CONFIG_LITMUS_NESTED_LOCKING | ||
111 | nested_increase_prio_t nested_increase_prio; | ||
112 | nested_decrease_prio_t nested_decrease_prio; | ||
100 | #endif | 113 | #endif |
101 | |||
102 | #ifdef CONFIG_LITMUS_DGL_SUPPORT | 114 | #ifdef CONFIG_LITMUS_DGL_SUPPORT |
103 | get_dgl_spinlock_t get_dgl_spinlock; | 115 | get_dgl_spinlock_t get_dgl_spinlock; |
104 | #endif | 116 | #endif |