summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Bakita <jbakita@cs.unc.edu>2020-10-23 02:49:42 -0400
committerJoshua Bakita <jbakita@cs.unc.edu>2020-10-23 02:49:42 -0400
commit915023773323b23671172c0b539e859e203756df (patch)
tree84f104579701ee32f73be3e4af54db71fdbf844e
parenta7c3210215bd1181ae93b23c313941dfb44519fb (diff)
Set exec_cost to a valid value in libextra
-rw-r--r--extra.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/extra.h b/extra.h
index 233cf3b..4194b71 100644
--- a/extra.h
+++ b/extra.h
@@ -211,7 +211,8 @@ static void _rt_load_params_itrl(int argc, char **argv) {
211 } 211 }
212 struct rt_task rt_param; 212 struct rt_task rt_param;
213 init_rt_task_param(&rt_param); 213 init_rt_task_param(&rt_param);
214 rt_param.exec_cost = 0; // We disable budget enforcement, so this doesn't matter 214 // Fake exec cost - this value ignored by the MC^2 scheduler
215 rt_param.exec_cost = _rt_period;
215 rt_param.period = ms2ns(_rt_period); 216 rt_param.period = ms2ns(_rt_period);
216 rt_param.relative_deadline = 0; 217 rt_param.relative_deadline = 0;
217 rt_param.phase = 0; 218 rt_param.phase = 0;