diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-02-12 15:51:00 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-02-12 15:51:00 -0500 |
commit | 2c1f329215e57a6f070cab21236b132b22ef80c2 (patch) | |
tree | c881e0f22793b2ccde306a17a5755f647d42c9ee /include | |
parent | 0530e4fae13d049315f19d6fda4327d6428fd58f (diff) |
first changes to compile with LITMUS 20082008.0
Diffstat (limited to 'include')
-rw-r--r-- | include/internal.h | 6 | ||||
-rw-r--r-- | include/litmus.h | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/include/internal.h b/include/internal.h index 25e1573..761c434 100644 --- a/include/internal.h +++ b/include/internal.h | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | /* prepare a real-time task */ | 6 | /* prepare a real-time task */ |
7 | typedef int (*rt_setup_fn_t)(int pid, void* arg); | 7 | typedef int (*rt_setup_fn_t)(int pid, void* arg); |
8 | int __launch_rt_task(rt_fn_t rt_prog, void *rt_arg, | 8 | int __launch_rt_task(rt_fn_t rt_prog, void *rt_arg, |
9 | rt_setup_fn_t setup, void* setup_arg); | 9 | rt_setup_fn_t setup, void* setup_arg); |
10 | 10 | ||
11 | #define check(str) \ | 11 | #define check(str) \ |
@@ -19,3 +19,7 @@ int __launch_rt_task(rt_fn_t rt_prog, void *rt_arg, | |||
19 | 19 | ||
20 | 20 | ||
21 | #endif | 21 | #endif |
22 | |||
23 | |||
24 | int sched_setscheduler(pid_t pid, int policy, int* prioriy); | ||
25 | int sched_getscheduler(pid_t pid); | ||
diff --git a/include/litmus.h b/include/litmus.h index b10abff..6699213 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #ifndef LITMUS_H | 1 | #ifndef LITMUS_H |
2 | #define LITMUS_H | 2 | #define LITMUS_H |
3 | 3 | ||
4 | #include <linux/rt_param.h> | 4 | #include <litmus/rt_param.h> |
5 | #include <sys/types.h> | 5 | #include <sys/types.h> |
6 | 6 | ||
7 | typedef int pid_t; /* PID of a task */ | 7 | typedef int pid_t; /* PID of a task */ |
@@ -14,7 +14,7 @@ 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(unsigned long exec_cost, unsigned long period, |
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) \ |
@@ -57,7 +57,7 @@ void exit_litmus(void); | |||
57 | typedef int (*rt_fn_t)(void*); | 57 | typedef int (*rt_fn_t)(void*); |
58 | 58 | ||
59 | int create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, int period); | 59 | int create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, int period); |
60 | int __create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, | 60 | int __create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, |
61 | int period, task_class_t cls); | 61 | int period, task_class_t cls); |
62 | 62 | ||
63 | /* per-task modes */ | 63 | /* per-task modes */ |