diff options
Diffstat (limited to 'include/litmus.h')
-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 |