diff options
author | Jeremy Erickson <jerickso@cs.unc.edu> | 2010-11-02 12:37:14 -0400 |
---|---|---|
committer | Jeremy Erickson <jerickso@cs.unc.edu> | 2010-11-02 12:37:14 -0400 |
commit | 2701b0022c6c409d2172753aed48d616e789b98c (patch) | |
tree | b3a12e39e8f882374f78508ab2733594244fb256 /src/task.c | |
parent | e9c900fae35e4e4730469e189ff17bf30518346a (diff) |
Updated Mixed Criticality stuffwip-mc-jerickso
Diffstat (limited to 'src/task.c')
-rw-r--r-- | src/task.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -41,11 +41,12 @@ int __launch_rt_task(rt_fn_t rt_prog, void *rt_arg, rt_setup_fn_t setup, | |||
41 | } | 41 | } |
42 | 42 | ||
43 | int __create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, int period, | 43 | int __create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, int period, |
44 | task_class_t class) | 44 | int criticality, task_class_t class) |
45 | { | 45 | { |
46 | struct rt_task params; | 46 | struct rt_task params; |
47 | params.cpu = cpu; | 47 | params.cpu = cpu; |
48 | params.period = period; | 48 | params.period = period; |
49 | params.crit = criticality; | ||
49 | params.exec_cost = wcet; | 50 | params.exec_cost = wcet; |
50 | params.cls = class; | 51 | params.cls = class; |
51 | params.phase = 0; | 52 | params.phase = 0; |
@@ -56,8 +57,10 @@ int __create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, int period, | |||
56 | (rt_setup_fn_t) set_rt_task_param, ¶ms); | 57 | (rt_setup_fn_t) set_rt_task_param, ¶ms); |
57 | } | 58 | } |
58 | 59 | ||
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, int period, |
60 | return __create_rt_task(rt_prog, arg, cpu, wcet, period, RT_CLASS_HARD); | 61 | int criticality) { |
62 | return __create_rt_task(rt_prog, arg, cpu, wcet, period, criticality, | ||
63 | RT_CLASS_HARD); | ||
61 | } | 64 | } |
62 | 65 | ||
63 | 66 | ||