diff options
Diffstat (limited to 'litmus/sched_plugin.c')
-rw-r--r-- | litmus/sched_plugin.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/litmus/sched_plugin.c b/litmus/sched_plugin.c index 245e41c25a5d..d24c9167cff8 100644 --- a/litmus/sched_plugin.c +++ b/litmus/sched_plugin.c | |||
@@ -137,6 +137,18 @@ static void litmus_dummy_increase_prio(struct task_struct* t, struct task_struct | |||
137 | static void litmus_dummy_decrease_prio(struct task_struct* t, struct task_struct* prio_inh) | 137 | static void litmus_dummy_decrease_prio(struct task_struct* t, struct task_struct* prio_inh) |
138 | { | 138 | { |
139 | } | 139 | } |
140 | |||
141 | static int litmus_dummy___increase_prio(struct task_struct* t, struct task_struct* prio_inh) | ||
142 | { | ||
143 | TRACE_CUR("WARNING: Dummy litmus_dummy___increase_prio called!\n"); | ||
144 | return 0; | ||
145 | } | ||
146 | |||
147 | static int litmus_dummy___decrease_prio(struct task_struct* t, struct task_struct* prio_inh) | ||
148 | { | ||
149 | TRACE_CUR("WARNING: Dummy litmus_dummy___decrease_prio called!\n"); | ||
150 | return 0; | ||
151 | } | ||
140 | #endif | 152 | #endif |
141 | 153 | ||
142 | #ifdef CONFIG_LITMUS_SOFTIRQD | 154 | #ifdef CONFIG_LITMUS_SOFTIRQD |
@@ -227,6 +239,8 @@ struct sched_plugin linux_sched_plugin = { | |||
227 | .allocate_lock = litmus_dummy_allocate_lock, | 239 | .allocate_lock = litmus_dummy_allocate_lock, |
228 | .increase_prio = litmus_dummy_increase_prio, | 240 | .increase_prio = litmus_dummy_increase_prio, |
229 | .decrease_prio = litmus_dummy_decrease_prio, | 241 | .decrease_prio = litmus_dummy_decrease_prio, |
242 | .__increase_prio = litmus_dummy___increase_prio, | ||
243 | .__decrease_prio = litmus_dummy___decrease_prio, | ||
230 | #endif | 244 | #endif |
231 | #ifdef CONFIG_LITMUS_NESTED_LOCKING | 245 | #ifdef CONFIG_LITMUS_NESTED_LOCKING |
232 | .nested_increase_prio = litmus_dummy_nested_increase_prio, | 246 | .nested_increase_prio = litmus_dummy_nested_increase_prio, |
@@ -289,6 +303,8 @@ int register_sched_plugin(struct sched_plugin* plugin) | |||
289 | CHECK(allocate_lock); | 303 | CHECK(allocate_lock); |
290 | CHECK(increase_prio); | 304 | CHECK(increase_prio); |
291 | CHECK(decrease_prio); | 305 | CHECK(decrease_prio); |
306 | CHECK(__increase_prio); | ||
307 | CHECK(__decrease_prio); | ||
292 | #endif | 308 | #endif |
293 | #ifdef CONFIG_LITMUS_NESTED_LOCKING | 309 | #ifdef CONFIG_LITMUS_NESTED_LOCKING |
294 | CHECK(nested_increase_prio); | 310 | CHECK(nested_increase_prio); |