aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/reservation.c
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2014-09-17 11:25:50 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2014-09-17 12:06:08 -0400
commitdfcd4fe2d623a761df7d86b45f83c30f3b2a2dad (patch)
tree61ebf2403c98b803ce35c138525fab6350e472d3 /litmus/reservation.c
parent21bb79c3bd0de928af22f42aeefa77cca784bbd6 (diff)
Reservations: fix time-tracking of table-driven reservations
Keep track of the current slot and major cycle explicitly to avoid ambiguity when the budget charging is delayed into the next major cycle due to a late interrupt or other sources of delay.
Diffstat (limited to 'litmus/reservation.c')
-rw-r--r--litmus/reservation.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/litmus/reservation.c b/litmus/reservation.c
index 447fc5b1be23..f79689823be7 100644
--- a/litmus/reservation.c
+++ b/litmus/reservation.c
@@ -206,6 +206,7 @@ static void sup_charge_budget(
206 /* stop at the first ACTIVE reservation */ 206 /* stop at the first ACTIVE reservation */
207 break; 207 break;
208 } 208 }
209 TRACE("finished charging budgets\n");
209} 210}
210 211
211static void sup_replenish_budgets(struct sup_reservation_environment* sup_env) 212static void sup_replenish_budgets(struct sup_reservation_environment* sup_env)
@@ -222,6 +223,7 @@ static void sup_replenish_budgets(struct sup_reservation_environment* sup_env)
222 break; 223 break;
223 } 224 }
224 } 225 }
226 TRACE("finished replenishing budgets\n");
225 227
226 /* request a scheduler update at the next replenishment instant */ 228 /* request a scheduler update at the next replenishment instant */
227 res = list_first_entry_or_null(&sup_env->depleted_reservations, 229 res = list_first_entry_or_null(&sup_env->depleted_reservations,