diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2016-07-25 17:31:21 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2017-05-28 16:24:01 -0400 |
commit | 0c4f39d1eb2abbc652c305cddfd423e05bcf8450 (patch) | |
tree | d52419fa8a3bff15cbac8413293db0bbf24e44e6 | |
parent | 546c77ba1df4f259f29fceec80d4d748426e5c91 (diff) |
P-RES: update times before processing departure
Don't forget to charge *current* reservation before its (potentially)
only client departs.
-rw-r--r-- | litmus/sched_pres.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/litmus/sched_pres.c b/litmus/sched_pres.c index 0170c6aba208..0a3270346656 100644 --- a/litmus/sched_pres.c +++ b/litmus/sched_pres.c | |||
@@ -231,6 +231,7 @@ static void pres_task_block(struct task_struct *tsk) | |||
231 | litmus_clock(), tsk->state, is_current_running()); | 231 | litmus_clock(), tsk->state, is_current_running()); |
232 | 232 | ||
233 | raw_spin_lock_irqsave(&state->lock, flags); | 233 | raw_spin_lock_irqsave(&state->lock, flags); |
234 | sup_update_time(&state->sup_env, litmus_clock()); | ||
234 | task_departs(tsk, is_completed(tsk)); | 235 | task_departs(tsk, is_completed(tsk)); |
235 | raw_spin_unlock_irqrestore(&state->lock, flags); | 236 | raw_spin_unlock_irqrestore(&state->lock, flags); |
236 | } | 237 | } |