diff options
author | Christopher Kenna <cjk@cs.unc.edu> | 2011-08-27 17:48:58 -0400 |
---|---|---|
committer | Christopher Kenna <cjk@cs.unc.edu> | 2011-08-27 17:48:58 -0400 |
commit | 1c5cda5df118735a0e84fd3277d933f58ea814c8 (patch) | |
tree | 07a21bb5d91803651cd88667afe968db80bf2634 /litmus/jobs.c | |
parent | 0e059210db4aef3ed1cff173652c23f257ccfa20 (diff) |
Refactor the mixed-criticality (MC) plugin.
Add linux kernel configuration option CONFIG_LITMUS_MC.
Attempt to restore rt_param.h to its original state as much as possible.
Remove fields from rt_task and rt_job and move them into a new mc_data
struct. Added mc_data field to rt_param compiled in only if using MC
plugin.
Make a new MC plugin specific header that contains a mc_data struct,
which is a container for mc_task struct and a mc_job struct.
Update sched_mc.c to use the new data structures. Also, add some macros
that simplify the code, e.g., getting task criticality quickly.
Add system call to set MC plugin specific stuff. Check for the change in
liblitmus.
Add a few lines to exit_litmus to reclaim the MC plugin mc_data struct
in the task_struct on task exit.
Diffstat (limited to 'litmus/jobs.c')
-rw-r--r-- | litmus/jobs.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/litmus/jobs.c b/litmus/jobs.c index 99b0bd9858f2..36e314625d86 100644 --- a/litmus/jobs.c +++ b/litmus/jobs.c | |||
@@ -13,9 +13,6 @@ void prepare_for_next_period(struct task_struct *t) | |||
13 | t->rt_param.job_params.release = t->rt_param.job_params.deadline; | 13 | t->rt_param.job_params.release = t->rt_param.job_params.deadline; |
14 | t->rt_param.job_params.deadline += get_rt_period(t); | 14 | t->rt_param.job_params.deadline += get_rt_period(t); |
15 | t->rt_param.job_params.exec_time = 0; | 15 | t->rt_param.job_params.exec_time = 0; |
16 | /* mixed criticality stuff*/ | ||
17 | t->rt_param.job_params.is_ghost = 0; | ||
18 | t->rt_param.job_params.ghost_budget = 0; | ||
19 | /* update job sequence number */ | 16 | /* update job sequence number */ |
20 | t->rt_param.job_params.job_no++; | 17 | t->rt_param.job_params.job_no++; |
21 | 18 | ||