aboutsummaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/litmus/reservation.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/litmus/reservation.h b/include/litmus/reservation.h
index d8d6ce37dc47..9c23e27165b2 100644
--- a/include/litmus/reservation.h
+++ b/include/litmus/reservation.h
@@ -33,9 +33,11 @@ typedef struct task_struct * (*dispatch_t) (
33); 33);
34 34
35/* Something that can be managed in a reservation and that can yield 35/* Something that can be managed in a reservation and that can yield
36 * a process for dispatching. */ 36 * a process for dispatching. Contains a pointer to the reservation
37 * to which it "belongs". */
37struct reservation_client { 38struct reservation_client {
38 struct list_head list; 39 struct list_head list;
40 struct reservation* reservation;
39 dispatch_t dispatch; 41 dispatch_t dispatch;
40}; 42};
41 43
@@ -135,7 +137,6 @@ struct task_struct* default_dispatch_client(
135/* "connector" reservation client to hook up tasks with reservations */ 137/* "connector" reservation client to hook up tasks with reservations */
136struct task_client { 138struct task_client {
137 struct reservation_client client; 139 struct reservation_client client;
138 struct reservation* reservation;
139 struct task_struct *task; 140 struct task_struct *task;
140}; 141};
141 142