From 915023773323b23671172c0b539e859e203756df Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Fri, 23 Oct 2020 02:49:42 -0400 Subject: Set exec_cost to a valid value in libextra --- extra.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { } struct rt_task rt_param; init_rt_task_param(&rt_param); - rt_param.exec_cost = 0; // We disable budget enforcement, so this doesn't matter + // Fake exec cost - this value ignored by the MC^2 scheduler + rt_param.exec_cost = _rt_period; rt_param.period = ms2ns(_rt_period); rt_param.relative_deadline = 0; rt_param.phase = 0; -- cgit v1.2.2