diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2009-04-29 11:46:42 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2009-04-29 11:46:42 -0400 |
commit | f60873de7c15d578974566bd052280666c759864 (patch) | |
tree | 48f0b4ed121a4a23715bfdf2c5032c654e9103e7 /include/litmus.h | |
parent | 715800e7610887ce87b5b6af61f9bddfdc29d97d (diff) |
add sporadic_task_ns() helper
Allows for higher-precision setup of real-time tasks.
Diffstat (limited to 'include/litmus.h')
-rw-r--r-- | include/litmus.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/litmus.h b/include/litmus.h index c578009..22376a4 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -18,10 +18,14 @@ int set_rt_task_param(pid_t pid, struct rt_task* param); | |||
18 | int get_rt_task_param(pid_t pid, struct rt_task* param); | 18 | int get_rt_task_param(pid_t pid, struct rt_task* param); |
19 | 19 | ||
20 | /* setup helper */ | 20 | /* setup helper */ |
21 | /* times are givin in ms */ | 21 | /* times are given in ms */ |
22 | int sporadic_task(lt_t e, lt_t p, lt_t phase, | 22 | int sporadic_task(lt_t e, lt_t p, lt_t phase, |
23 | int partition, task_class_t cls, int set_cpu_set); | 23 | int partition, task_class_t cls, int set_cpu_set); |
24 | 24 | ||
25 | /* times are given in ns */ | ||
26 | int sporadic_task_ns(lt_t e, lt_t p, lt_t phase, | ||
27 | int cpu, task_class_t cls, int set_cpu_set); | ||
28 | |||
25 | #define sporadic_global(e, p) \ | 29 | #define sporadic_global(e, p) \ |
26 | sporadic_task(e, p, 0, 0, RT_CLASS_SOFT, 0) | 30 | sporadic_task(e, p, 0, 0, RT_CLASS_SOFT, 0) |
27 | #define sporadic_partitioned(e, p, cpu) \ | 31 | #define sporadic_partitioned(e, p, cpu) \ |