diff options
Diffstat (limited to 'src/task.c')
-rw-r--r-- | src/task.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -40,11 +40,11 @@ int __launch_rt_task(rt_fn_t rt_prog, void *rt_arg, rt_setup_fn_t setup, | |||
40 | return rt_task; | 40 | return rt_task; |
41 | } | 41 | } |
42 | 42 | ||
43 | int __create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, lt_t wcet, lt_t period, | 43 | int __create_rt_task(rt_fn_t rt_prog, void *arg, int cluster, int cluster_size, |
44 | unsigned int priority, task_class_t class) | 44 | lt_t wcet, lt_t period, unsigned int priority, task_class_t class) |
45 | { | 45 | { |
46 | struct rt_task params; | 46 | struct rt_task params; |
47 | params.cpu = cpu; | 47 | params.cpu = cluster_to_first_cpu(cluster, cluster_size); |
48 | params.period = period; | 48 | params.period = period; |
49 | params.exec_cost = wcet; | 49 | params.exec_cost = wcet; |
50 | params.cls = class; | 50 | params.cls = class; |
@@ -57,9 +57,11 @@ int __create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, lt_t wcet, lt_t period | |||
57 | (rt_setup_fn_t) set_rt_task_param, ¶ms); | 57 | (rt_setup_fn_t) set_rt_task_param, ¶ms); |
58 | } | 58 | } |
59 | 59 | ||
60 | int create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, lt_t wcet, lt_t period, | 60 | int create_rt_task(rt_fn_t rt_prog, void *arg, int cluster, int cluster_size, |
61 | unsigned int priority) { | 61 | lt_t wcet, lt_t period, unsigned int prio) |
62 | return __create_rt_task(rt_prog, arg, cpu, wcet, period, priority, RT_CLASS_HARD); | 62 | { |
63 | return __create_rt_task(rt_prog, arg, cluster, cluster_size, wcet, period, | ||
64 | prio, RT_CLASS_HARD); | ||
63 | } | 65 | } |
64 | 66 | ||
65 | 67 | ||