diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-09-22 12:05:47 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-09-22 12:05:47 -0400 |
commit | 2ab941c97d32c0f3314ec3e6482a0fc017bac918 (patch) | |
tree | 8fde2087d77918155a6062945d0747126d2c878c /include | |
parent | e9c900fae35e4e4730469e189ff17bf30518346a (diff) |
Add sporadic_task_ns_semi() helper function for semi-part algos.
Diffstat (limited to 'include')
-rw-r--r-- | include/litmus.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/litmus.h b/include/litmus.h index b798c92..de7301d 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -9,6 +9,7 @@ extern "C" { | |||
9 | * This is required for the rt_param | 9 | * This is required for the rt_param |
10 | * and control_page structures. | 10 | * and control_page structures. |
11 | */ | 11 | */ |
12 | #include <linux/threads.h> | ||
12 | #include <litmus/rt_param.h> | 13 | #include <litmus/rt_param.h> |
13 | 14 | ||
14 | #include <sys/types.h> | 15 | #include <sys/types.h> |
@@ -40,6 +41,9 @@ int sporadic_task_ns( | |||
40 | int cpu, task_class_t cls, | 41 | int cpu, task_class_t cls, |
41 | budget_policy_t budget_policy, int set_cpu_set); | 42 | budget_policy_t budget_policy, int set_cpu_set); |
42 | 43 | ||
44 | /* times are in ns, specific helper for semi-partitioned algos */ | ||
45 | int sporadic_task_ns_semi(struct rt_task *rt); | ||
46 | |||
43 | /* budget enforcement off by default in these macros */ | 47 | /* budget enforcement off by default in these macros */ |
44 | #define sporadic_global(e, p) \ | 48 | #define sporadic_global(e, p) \ |
45 | sporadic_task(e, p, 0, 0, RT_CLASS_SOFT, NO_ENFORCEMENT, 0) | 49 | sporadic_task(e, p, 0, 0, RT_CLASS_SOFT, NO_ENFORCEMENT, 0) |