diff options
author | Namhoon Kim <namhoonk@ludwig.cs.unc.edu> | 2013-11-25 17:23:23 -0500 |
---|---|---|
committer | Namhoon Kim <namhoonk@ludwig.cs.unc.edu> | 2013-11-25 17:23:23 -0500 |
commit | 52006dedc0a2ba4d8a1901e8940eb80f8c02033e (patch) | |
tree | 8560e8b25ad03f59ffecb7b624e36da0147f5133 /src/task.c | |
parent | f4d43d7b7d23c6445f099c28e156f0cffdaae000 (diff) |
First draft of C-FL-split factor supportwip-pgm-split
1) added -n option in rtspin to specify split factor
Diffstat (limited to 'src/task.c')
-rw-r--r-- | src/task.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -40,10 +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 cluster, int cluster_size, | 43 | int __create_rt_task(rt_fn_t rt_prog, void *arg, int split, int cluster, int cluster_size, |
44 | lt_t wcet, lt_t period, 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.split = split; | ||
47 | params.cpu = cluster_to_first_cpu(cluster, cluster_size); | 48 | params.cpu = cluster_to_first_cpu(cluster, cluster_size); |
48 | params.period = period; | 49 | params.period = period; |
49 | params.exec_cost = wcet; | 50 | params.exec_cost = wcet; |
@@ -57,10 +58,10 @@ int __create_rt_task(rt_fn_t rt_prog, void *arg, int cluster, int cluster_size, | |||
57 | (rt_setup_fn_t) set_rt_task_param, ¶ms); | 58 | (rt_setup_fn_t) set_rt_task_param, ¶ms); |
58 | } | 59 | } |
59 | 60 | ||
60 | int create_rt_task(rt_fn_t rt_prog, void *arg, int cluster, int cluster_size, | 61 | int create_rt_task(rt_fn_t rt_prog, void *arg, int split, int cluster, int cluster_size, |
61 | lt_t wcet, lt_t period, unsigned int prio) | 62 | lt_t wcet, lt_t period, unsigned int prio) |
62 | { | 63 | { |
63 | return __create_rt_task(rt_prog, arg, cluster, cluster_size, wcet, period, | 64 | return __create_rt_task(rt_prog, arg, split, cluster, cluster_size, wcet, period, |
64 | prio, RT_CLASS_HARD); | 65 | prio, RT_CLASS_HARD); |
65 | } | 66 | } |
66 | 67 | ||