diff options
Diffstat (limited to 'include/litmus.h')
-rw-r--r-- | include/litmus.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/litmus.h b/include/litmus.h index 343aab3..0f96aa7 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -49,13 +49,6 @@ typedef struct rt_param { | |||
49 | 49 | ||
50 | typedef int pid_t; /* PID of a task */ | 50 | typedef int pid_t; /* PID of a task */ |
51 | 51 | ||
52 | /* X */ | ||
53 | #define set_param(t,p,e) do{\ | ||
54 | (t).is_realtime=1;\ | ||
55 | (t).exec_cost=(e);\ | ||
56 | (t).period=(p);\ | ||
57 | }while(0); | ||
58 | |||
59 | /* scheduler modes */ | 52 | /* scheduler modes */ |
60 | #define MODE_NON_RT 0 | 53 | #define MODE_NON_RT 0 |
61 | #define MODE_RT_RUN 1 | 54 | #define MODE_RT_RUN 1 |
@@ -66,6 +59,13 @@ int set_rt_task_param(pid_t pid, rt_param_t* param); | |||
66 | int get_rt_task_param(pid_t pid, rt_param_t* param); | 59 | int get_rt_task_param(pid_t pid, rt_param_t* param); |
67 | int prepare_rt_task(pid_t pid); | 60 | int prepare_rt_task(pid_t pid); |
68 | 61 | ||
62 | #define sporadic_gobal(e, p) \ | ||
63 | sporadic_task(e, p, 0, RT_CLASS_SOFT) | ||
64 | #define sporadic_partitioned(e, p, cpu) \ | ||
65 | sporadic_task(e, p, cpu, RT_CLASS_SOFT) | ||
66 | int sporadic_task(unsigned long exec_cost, unsigned long period, | ||
67 | int partition, task_class_t cls); | ||
68 | |||
69 | 69 | ||
70 | enum { | 70 | enum { |
71 | LITMUS_RESERVED_RANGE = 1024, | 71 | LITMUS_RESERVED_RANGE = 1024, |