aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2016-07-25 17:31:21 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2017-05-28 16:24:01 -0400
commit0c4f39d1eb2abbc652c305cddfd423e05bcf8450 (patch)
treed52419fa8a3bff15cbac8413293db0bbf24e44e6
parent546c77ba1df4f259f29fceec80d4d748426e5c91 (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.c1
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}