diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-05-03 16:50:32 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-05-03 17:17:52 -0400 |
commit | bb35f3fc684667598d7ae39fd2d49a16f77beb39 (patch) | |
tree | 6a70f13510e36e2771652bb3fc6d60321bf1daf6 /include/litmus/sched_plugin.h | |
parent | e0e02579c34b9920781b3ce3fc9d6d7bcafb4d5b (diff) |
Added color schedule
Diffstat (limited to 'include/litmus/sched_plugin.h')
-rw-r--r-- | include/litmus/sched_plugin.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/litmus/sched_plugin.h b/include/litmus/sched_plugin.h index 6e7cabdddae8..0f529fa78b4d 100644 --- a/include/litmus/sched_plugin.h +++ b/include/litmus/sched_plugin.h | |||
@@ -11,6 +11,8 @@ | |||
11 | #include <litmus/locking.h> | 11 | #include <litmus/locking.h> |
12 | #endif | 12 | #endif |
13 | 13 | ||
14 | struct litmus_lock; | ||
15 | |||
14 | /************************ setup/tear down ********************/ | 16 | /************************ setup/tear down ********************/ |
15 | 17 | ||
16 | typedef long (*activate_plugin_t) (void); | 18 | typedef long (*activate_plugin_t) (void); |
@@ -67,6 +69,9 @@ typedef long (*admit_task_t)(struct task_struct* tsk); | |||
67 | 69 | ||
68 | typedef void (*release_at_t)(struct task_struct *t, lt_t start); | 70 | typedef void (*release_at_t)(struct task_struct *t, lt_t start); |
69 | 71 | ||
72 | /* TODO remove me */ | ||
73 | typedef void (*release_ts_t)(lt_t time); | ||
74 | |||
70 | struct sched_plugin { | 75 | struct sched_plugin { |
71 | struct list_head list; | 76 | struct list_head list; |
72 | /* basic info */ | 77 | /* basic info */ |
@@ -93,6 +98,8 @@ struct sched_plugin { | |||
93 | task_block_t task_block; | 98 | task_block_t task_block; |
94 | task_exit_t task_exit; | 99 | task_exit_t task_exit; |
95 | 100 | ||
101 | release_ts_t release_ts; | ||
102 | |||
96 | #ifdef CONFIG_LITMUS_LOCKING | 103 | #ifdef CONFIG_LITMUS_LOCKING |
97 | /* locking protocols */ | 104 | /* locking protocols */ |
98 | allocate_lock_t allocate_lock; | 105 | allocate_lock_t allocate_lock; |