diff options
Diffstat (limited to 'litmus/sched_mc2.c')
| -rw-r--r-- | litmus/sched_mc2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/litmus/sched_mc2.c b/litmus/sched_mc2.c index ab35008668d6..1e5b28ba0ac3 100644 --- a/litmus/sched_mc2.c +++ b/litmus/sched_mc2.c | |||
| @@ -381,6 +381,8 @@ static void mc2_task_new(struct task_struct *tsk, int on_runqueue, | |||
| 381 | task_new_legacy_task_model_updates(tsk); | 381 | task_new_legacy_task_model_updates(tsk); |
| 382 | } | 382 | } |
| 383 | 383 | ||
| 384 | static long mc2_reservation_destroy(unsigned int reservation_id, int cpu); | ||
| 385 | |||
| 384 | static void mc2_task_exit(struct task_struct *tsk) | 386 | static void mc2_task_exit(struct task_struct *tsk) |
| 385 | { | 387 | { |
| 386 | unsigned long flags; | 388 | unsigned long flags; |
| @@ -404,6 +406,8 @@ static void mc2_task_exit(struct task_struct *tsk) | |||
| 404 | } else | 406 | } else |
| 405 | raw_spin_unlock_irqrestore(&state->lock, flags); | 407 | raw_spin_unlock_irqrestore(&state->lock, flags); |
| 406 | 408 | ||
| 409 | mc2_reservation_destroy(tsk->pid, tinfo->cpu); | ||
| 410 | |||
| 407 | kfree(tsk_rt(tsk)->plugin_state); | 411 | kfree(tsk_rt(tsk)->plugin_state); |
| 408 | tsk_rt(tsk)->plugin_state = NULL; | 412 | tsk_rt(tsk)->plugin_state = NULL; |
| 409 | } | 413 | } |
