diff options
author | Namhoon Kim <namhoonk@cs.unc.edu> | 2015-01-24 13:24:12 -0500 |
---|---|---|
committer | Namhoon Kim <namhoonk@cs.unc.edu> | 2015-01-24 13:24:12 -0500 |
commit | ca538aafd7cebfd09a47af0a628647620a6bba35 (patch) | |
tree | 811e8a0663e5eda924fa68ef2a5a104501c1cdfa /include | |
parent | 34fe51ed2dc210e87bfa5d85ab98c5125495f002 (diff) |
Reservation destroy
Diffstat (limited to 'include')
-rw-r--r-- | include/litmus/reservation.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/litmus/reservation.h b/include/litmus/reservation.h index 5ccb20055a56..0e656ad2667e 100644 --- a/include/litmus/reservation.h +++ b/include/litmus/reservation.h | |||
@@ -129,6 +129,8 @@ struct reservation { | |||
129 | 129 | ||
130 | /* for global env. */ | 130 | /* for global env. */ |
131 | int scheduled_on; | 131 | int scheduled_on; |
132 | /* for blocked by ghost */ | ||
133 | int blocked_by_ghost; | ||
132 | }; | 134 | }; |
133 | 135 | ||
134 | void reservation_init(struct reservation *res); | 136 | void reservation_init(struct reservation *res); |
@@ -225,14 +227,14 @@ struct gmp_reservation_environment { | |||
225 | /* set to true if a call to gmp_dispatch() is imminent */ | 227 | /* set to true if a call to gmp_dispatch() is imminent */ |
226 | bool will_schedule; | 228 | bool will_schedule; |
227 | }; | 229 | }; |
228 | /* | 230 | |
229 | void gmp_init(struct gmp_reservation_environment* gmp_env); | 231 | void gmp_init(struct gmp_reservation_environment* gmp_env); |
230 | void gmp_add_new_reservation(struct gmp_reservation_environment* gmp_env, | 232 | void gmp_add_new_reservation(struct gmp_reservation_environment* gmp_env, |
231 | struct reservation* new_res); | 233 | struct reservation* new_res); |
232 | void gmp_update_time(struct gmp_reservation_environment* gmp_env, lt_t now); | 234 | void gmp_update_time(struct gmp_reservation_environment* gmp_env, lt_t now); |
233 | struct task_struct* gmp_dispatch(struct gmp_reservation_environment* gmp_env); | 235 | struct task_struct* gmp_dispatch(struct gmp_reservation_environment* gmp_env); |
234 | 236 | struct next_timer_event* gmp_find_event_by_id(struct gmp_reservation_environment* gmp_env, unsigned int id); | |
235 | struct reservation* gmp_find_by_id(struct gmp_reservation_environment* gmp_env, | 237 | struct reservation* gmp_find_by_id(struct gmp_reservation_environment* gmp_env, |
236 | unsigned int id); | 238 | unsigned int id); |
237 | */ | 239 | |
238 | #endif | 240 | #endif |