diff options
Diffstat (limited to 'bin/rtspin.c')
-rw-r--r-- | bin/rtspin.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/rtspin.c b/bin/rtspin.c index b4156cc..b518574 100644 --- a/bin/rtspin.c +++ b/bin/rtspin.c | |||
@@ -184,7 +184,7 @@ static int job(double exec_time, double program_end, int lock_od, double cs_leng | |||
184 | } | 184 | } |
185 | } | 185 | } |
186 | 186 | ||
187 | #define OPTSTR "p:c:wlveo:f:s:q:X:L:Q:" | 187 | #define OPTSTR "p:c:wlveo:f:s:q:X:L:Q:n:" |
188 | int main(int argc, char** argv) | 188 | int main(int argc, char** argv) |
189 | { | 189 | { |
190 | int ret; | 190 | int ret; |
@@ -192,6 +192,7 @@ int main(int argc, char** argv) | |||
192 | lt_t period; | 192 | lt_t period; |
193 | double wcet_ms, period_ms; | 193 | double wcet_ms, period_ms; |
194 | unsigned int priority = LITMUS_LOWEST_PRIORITY; | 194 | unsigned int priority = LITMUS_LOWEST_PRIORITY; |
195 | int split_factor = 1; | ||
195 | int migrate = 0; | 196 | int migrate = 0; |
196 | int cluster = 0; | 197 | int cluster = 0; |
197 | int opt; | 198 | int opt; |
@@ -225,6 +226,9 @@ int main(int argc, char** argv) | |||
225 | cluster = atoi(optarg); | 226 | cluster = atoi(optarg); |
226 | migrate = 1; | 227 | migrate = 1; |
227 | break; | 228 | break; |
229 | case 'n': | ||
230 | split_factor = atoi(optarg); | ||
231 | break; | ||
228 | case 'q': | 232 | case 'q': |
229 | priority = atoi(optarg); | 233 | priority = atoi(optarg); |
230 | if (!litmus_is_valid_fixed_prio(priority)) | 234 | if (!litmus_is_valid_fixed_prio(priority)) |
@@ -330,6 +334,7 @@ int main(int argc, char** argv) | |||
330 | init_rt_task_param(¶m); | 334 | init_rt_task_param(¶m); |
331 | param.exec_cost = wcet; | 335 | param.exec_cost = wcet; |
332 | param.period = period; | 336 | param.period = period; |
337 | param.split = split_factor; | ||
333 | param.priority = priority; | 338 | param.priority = priority; |
334 | param.cls = class; | 339 | param.cls = class; |
335 | param.budget_policy = (want_enforcement) ? | 340 | param.budget_policy = (want_enforcement) ? |