summaryrefslogtreecommitdiffstats
path: root/extra.h
diff options
context:
space:
mode:
Diffstat (limited to 'extra.h')
-rw-r--r--extra.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/extra.h b/extra.h
index 9c72064..a73ab96 100644
--- a/extra.h
+++ b/extra.h
@@ -120,12 +120,12 @@ static void _rt_load_params_itrl(int argc, char **argv) {
120 _rt_will_output = atoi(argv[7]); 120 _rt_will_output = atoi(argv[7]);
121 char *pairId; 121 char *pairId;
122 int end; 122 int end;
123 if (argc > 8) { 123 if (argc > 7) {
124 pairId = argv[8]; 124 pairId = argv[8];
125 end = 8; 125 end = 9;
126 } else { 126 } else {
127 pairId = "none"; 127 pairId = "none";
128 end = 9; 128 end = 8;
129 } 129 }
130#else 130#else
131 _rt_other_core = "none"; 131 _rt_other_core = "none";
@@ -204,7 +204,7 @@ static void _rt_load_params_itrl(int argc, char **argv) {
204#if LITMUS 204#if LITMUS
205 _rt_period = strtoul(argv[end], NULL, 10); 205 _rt_period = strtoul(argv[end], NULL, 10);
206 unsigned int crit = atoi(argv[end+1]); 206 unsigned int crit = atoi(argv[end+1]);
207 unsigned int wait = 1; 207 unsigned int wait = 0;
208 if (be_migrate_to_domain(_rt_core) < 0) { 208 if (be_migrate_to_domain(_rt_core) < 0) {
209 perror("Unable to migrate to specified CPU"); 209 perror("Unable to migrate to specified CPU");
210 exit(1); 210 exit(1);
@@ -221,6 +221,7 @@ static void _rt_load_params_itrl(int argc, char **argv) {
221 rt_param.release_policy = TASK_PERIODIC; 221 rt_param.release_policy = TASK_PERIODIC;
222 rt_param.budget_policy = NO_ENFORCEMENT; 222 rt_param.budget_policy = NO_ENFORCEMENT;
223 rt_param.cpu = _rt_core; 223 rt_param.cpu = _rt_core;
224 rt_param.release_policy = TASK_PERIODIC;
224 if (set_rt_task_param(gettid(), &rt_param) < 0) { 225 if (set_rt_task_param(gettid(), &rt_param) < 0) {
225 perror("Unable to set real-time parameters"); 226 perror("Unable to set real-time parameters");
226 exit(1); 227 exit(1);