From f60873de7c15d578974566bd052280666c759864 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Wed, 29 Apr 2009 11:46:42 -0400 Subject: add sporadic_task_ns() helper Allows for higher-precision setup of real-time tasks. --- include/litmus.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/litmus.h') 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); int get_rt_task_param(pid_t pid, struct rt_task* param); /* setup helper */ -/* times are givin in ms */ +/* times are given in ms */ int sporadic_task(lt_t e, lt_t p, lt_t phase, int partition, task_class_t cls, int set_cpu_set); +/* times are given in ns */ +int sporadic_task_ns(lt_t e, lt_t p, lt_t phase, + int cpu, task_class_t cls, int set_cpu_set); + #define sporadic_global(e, p) \ sporadic_task(e, p, 0, 0, RT_CLASS_SOFT, 0) #define sporadic_partitioned(e, p, cpu) \ -- cgit v1.2.2