diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/litmus.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/litmus.c b/src/litmus.c index d3cc6bb..d478ffc 100644 --- a/src/litmus.c +++ b/src/litmus.c | |||
@@ -42,16 +42,18 @@ int be_migrate_to(int target_cpu) | |||
42 | } | 42 | } |
43 | 43 | ||
44 | int sporadic_task(lt_t e, lt_t p, lt_t phase, | 44 | int sporadic_task(lt_t e, lt_t p, lt_t phase, |
45 | int cpu, task_class_t cls, | 45 | int cpu, unsigned int priority, |
46 | task_class_t cls, | ||
46 | budget_policy_t budget_policy, int set_cpu_set) | 47 | budget_policy_t budget_policy, int set_cpu_set) |
47 | { | 48 | { |
48 | return sporadic_task_ns(e * NS_PER_MS, p * NS_PER_MS, phase * NS_PER_MS, | 49 | return sporadic_task_ns(e * NS_PER_MS, p * NS_PER_MS, phase * NS_PER_MS, |
49 | cpu, cls, budget_policy, set_cpu_set); | 50 | cpu, priority, cls, budget_policy, set_cpu_set); |
50 | } | 51 | } |
51 | 52 | ||
52 | int sporadic_task_ns(lt_t e, lt_t p, lt_t phase, | 53 | int sporadic_task_ns(lt_t e, lt_t p, lt_t phase, |
53 | int cpu, task_class_t cls, | 54 | int cpu, unsigned int priority, |
54 | budget_policy_t budget_policy, int set_cpu_set) | 55 | task_class_t cls, |
56 | budget_policy_t budget_policy, int set_cpu_set) | ||
55 | { | 57 | { |
56 | struct rt_task param; | 58 | struct rt_task param; |
57 | int ret; | 59 | int ret; |
@@ -67,6 +69,7 @@ int sporadic_task_ns(lt_t e, lt_t p, lt_t phase, | |||
67 | param.cls = cls; | 69 | param.cls = cls; |
68 | param.phase = phase; | 70 | param.phase = phase; |
69 | param.budget_policy = budget_policy; | 71 | param.budget_policy = budget_policy; |
72 | param.priority = priority; | ||
70 | 73 | ||
71 | if (set_cpu_set) { | 74 | if (set_cpu_set) { |
72 | ret = be_migrate_to(cpu); | 75 | ret = be_migrate_to(cpu); |