aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/reservation.c
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2014-09-11 06:53:42 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2014-09-11 06:53:42 -0400
commit9ec32807edf33064734a815c949668704a07c5f3 (patch)
treea182de2c27e5b2539d38488dff3cf5ac54cba6c5 /litmus/reservation.c
parente18fc708a32b2ee6b48e648cd2ac767eb76be5e5 (diff)
Move 'reservation' field from task_client to generic reservation_client
This makes it a lot easier to write generic code for thread arrival / thread departure in plugins with multiple types of reservation clients.
Diffstat (limited to 'litmus/reservation.c')
-rw-r--r--litmus/reservation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/litmus/reservation.c b/litmus/reservation.c
index cd51b90c14a0..447fc5b1be23 100644
--- a/litmus/reservation.c
+++ b/litmus/reservation.c
@@ -40,8 +40,8 @@ void task_client_init(struct task_client *tc, struct task_struct *tsk,
40{ 40{
41 memset(&tc->client, sizeof(tc->client), 0); 41 memset(&tc->client, sizeof(tc->client), 0);
42 tc->client.dispatch = task_client_dispatch; 42 tc->client.dispatch = task_client_dispatch;
43 tc->client.reservation = res;
43 tc->task = tsk; 44 tc->task = tsk;
44 tc->reservation = res;
45} 45}
46 46
47static void sup_scheduler_update_at( 47static void sup_scheduler_update_at(
@@ -180,7 +180,7 @@ static void sup_charge_budget(
180{ 180{
181 struct list_head *pos, *next; 181 struct list_head *pos, *next;
182 struct reservation *res; 182 struct reservation *res;
183 183
184 int encountered_active = 0; 184 int encountered_active = 0;
185 185
186 list_for_each_safe(pos, next, &sup_env->active_reservations) { 186 list_for_each_safe(pos, next, &sup_env->active_reservations) {