aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/sched_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/sched_plugin.c')
-rw-r--r--litmus/sched_plugin.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/litmus/sched_plugin.c b/litmus/sched_plugin.c
index e870fc14d4d3..74bf6b1d2ce4 100644
--- a/litmus/sched_plugin.c
+++ b/litmus/sched_plugin.c
@@ -92,6 +92,10 @@ static void litmus_dummy_tick(struct task_struct* tsk)
92{ 92{
93} 93}
94 94
95static void litmus_dummy_check_schedule(struct task_struct* tsk)
96{
97}
98
95static long litmus_dummy_admit_task(struct task_struct* tsk) 99static long litmus_dummy_admit_task(struct task_struct* tsk)
96{ 100{
97 printk(KERN_CRIT "LITMUS^RT: Linux plugin rejects %s/%d.\n", 101 printk(KERN_CRIT "LITMUS^RT: Linux plugin rejects %s/%d.\n",
@@ -150,7 +154,7 @@ static void litmus_dummy_increase_prio(struct task_struct* t, struct task_struct
150{ 154{
151} 155}
152 156
153static void litmus_dummy_decrease_prio(struct task_struct* t, struct task_struct* prio_inh) 157static void litmus_dummy_decrease_prio(struct task_struct* t, struct task_struct* prio_inh, int budget_triggered)
154{ 158{
155} 159}
156 160
@@ -160,7 +164,7 @@ static int litmus_dummy___increase_prio(struct task_struct* t, struct task_struc
160 return 0; 164 return 0;
161} 165}
162 166
163static int litmus_dummy___decrease_prio(struct task_struct* t, struct task_struct* prio_inh) 167static int litmus_dummy___decrease_prio(struct task_struct* t, struct task_struct* prio_inh, int budget_triggered)
164{ 168{
165 TRACE_CUR("WARNING: Dummy litmus_dummy___decrease_prio called!\n"); 169 TRACE_CUR("WARNING: Dummy litmus_dummy___decrease_prio called!\n");
166 return 0; 170 return 0;
@@ -194,7 +198,8 @@ static void litmus_dummy_nested_increase_prio(struct task_struct* t, struct task
194} 198}
195 199
196static void litmus_dummy_nested_decrease_prio(struct task_struct* t, struct task_struct* prio_inh, 200static void litmus_dummy_nested_decrease_prio(struct task_struct* t, struct task_struct* prio_inh,
197 raw_spinlock_t *to_unlock, unsigned long irqflags) 201 raw_spinlock_t *to_unlock, unsigned long irqflags,
202 int budget_triggered)
198{ 203{
199} 204}
200 205
@@ -242,6 +247,7 @@ struct sched_plugin linux_sched_plugin = {
242 .complete_job = litmus_dummy_complete_job, 247 .complete_job = litmus_dummy_complete_job,
243 .schedule = litmus_dummy_schedule, 248 .schedule = litmus_dummy_schedule,
244 .finish_switch = litmus_dummy_finish_switch, 249 .finish_switch = litmus_dummy_finish_switch,
250 .check_schedule = litmus_dummy_check_schedule,
245 .activate_plugin = litmus_dummy_activate_plugin, 251 .activate_plugin = litmus_dummy_activate_plugin,
246 .deactivate_plugin = litmus_dummy_deactivate_plugin, 252 .deactivate_plugin = litmus_dummy_deactivate_plugin,
247 .compare = litmus_dummy_compare, 253 .compare = litmus_dummy_compare,
@@ -299,6 +305,7 @@ int register_sched_plugin(struct sched_plugin* plugin)
299 CHECK(finish_switch); 305 CHECK(finish_switch);
300 CHECK(schedule); 306 CHECK(schedule);
301 CHECK(tick); 307 CHECK(tick);
308 CHECK(check_schedule);
302 CHECK(task_wake_up); 309 CHECK(task_wake_up);
303 CHECK(task_exit); 310 CHECK(task_exit);
304 CHECK(task_block); 311 CHECK(task_block);