diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-02-03 01:09:48 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-02-03 01:09:48 -0500 |
commit | 2d507260ee723f8302c5c97a9bda1cf00f30ec99 (patch) | |
tree | 033231fa56c53c67916cbc1f1a05d9560ef1d4ab /src/litmus.c | |
parent | 526afdfb333ca29170fd210b08860ac2a4c141ed (diff) |
many changes
- use declarations from kernel
- get rid of stuipd system call macros
Diffstat (limited to 'src/litmus.c')
-rw-r--r-- | src/litmus.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/litmus.c b/src/litmus.c index 8f5dfe8..6503088 100644 --- a/src/litmus.c +++ b/src/litmus.c | |||
@@ -8,10 +8,10 @@ | |||
8 | #include "litmus.h" | 8 | #include "litmus.h" |
9 | #include "internal.h" | 9 | #include "internal.h" |
10 | 10 | ||
11 | void show_rt_param(rt_param_t* tp) | 11 | void show_rt_param(struct rt_task* tp) |
12 | { | 12 | { |
13 | printf("rt params:\n\t" | 13 | printf("rt params:\n\t" |
14 | "exec_cost:\t%ld\n\tperiod:\t\t%ld\n\tcpu:\t%d\n", | 14 | "exec_cost:\t%llu\n\tperiod:\t\t%llu\n\tcpu:\t%d\n", |
15 | tp->exec_cost, tp->period, tp->cpu); | 15 | tp->exec_cost, tp->period, tp->cpu); |
16 | } | 16 | } |
17 | 17 | ||
@@ -30,11 +30,11 @@ task_class_t str2class(const char* str) | |||
30 | int sporadic_task(unsigned long e, unsigned long p, | 30 | int sporadic_task(unsigned long e, unsigned long p, |
31 | int cpu, task_class_t cls) | 31 | int cpu, task_class_t cls) |
32 | { | 32 | { |
33 | rt_param_t param; | 33 | struct rt_task param; |
34 | param.exec_cost = e; | 34 | param.exec_cost = e; |
35 | param.period = p; | 35 | param.period = p; |
36 | param.cpu = cpu; | 36 | param.cpu = cpu; |
37 | param.cls = cls; | 37 | param.cls = cls; |
38 | return set_rt_task_param(gettid(), ¶m); | 38 | return set_rt_task_param(gettid(), ¶m); |
39 | } | 39 | } |
40 | 40 | ||