diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-02-19 15:48:59 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-02-19 15:48:59 -0500 |
commit | 8cea6a4d179628e96d8d012f7a7f18d112fdb060 (patch) | |
tree | edbec8b5f4c91775f089c72a345096066fe8e5d6 /include | |
parent | 2c1f329215e57a6f070cab21236b132b22ef80c2 (diff) |
adapt to new ABI
Diffstat (limited to 'include')
-rw-r--r-- | include/litmus.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/litmus.h b/include/litmus.h index 6699213..ef39262 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -14,13 +14,13 @@ int get_rt_task_param(pid_t pid, struct rt_task* param); | |||
14 | 14 | ||
15 | /* setup helper */ | 15 | /* setup helper */ |
16 | /* times are givin in ms */ | 16 | /* times are givin in ms */ |
17 | int sporadic_task(unsigned long exec_cost, unsigned long period, | 17 | int sporadic_task(lt_t e, lt_t p, lt_t phase, |
18 | int partition, task_class_t cls); | 18 | int partition, task_class_t cls); |
19 | 19 | ||
20 | #define sporadic_global(e, p) \ | 20 | #define sporadic_global(e, p) \ |
21 | sporadic_task(e, p, 0, RT_CLASS_SOFT) | 21 | sporadic_task(e, p, 0, 0, RT_CLASS_SOFT) |
22 | #define sporadic_partitioned(e, p, cpu) \ | 22 | #define sporadic_partitioned(e, p, cpu) \ |
23 | sporadic_task(e, p, cpu, RT_CLASS_SOFT) | 23 | sporadic_task(e, p, 0, cpu, RT_CLASS_SOFT) |
24 | 24 | ||
25 | /* file descriptor attached shared objects support */ | 25 | /* file descriptor attached shared objects support */ |
26 | typedef enum { | 26 | typedef enum { |
@@ -74,4 +74,8 @@ task_class_t str2class(const char* str); | |||
74 | void enter_np(void); | 74 | void enter_np(void); |
75 | void exit_np(void); | 75 | void exit_np(void); |
76 | 76 | ||
77 | /* task system support */ | ||
78 | int wait_for_ts_release(void); | ||
79 | int release_ts(lt_t *delay); | ||
80 | |||
77 | #endif | 81 | #endif |