aboutsummaryrefslogtreecommitdiffstats
path: root/litmus
diff options
context:
space:
mode:
authorGeoffrey <geoffret@usc.edu>2015-12-08 19:04:58 -0500
committerGeoffrey <geoffret@usc.edu>2015-12-08 19:04:58 -0500
commit0ccca2efed878ed7ebdda8aa546925dc7fcb7335 (patch)
tree84478679799003372f7efb570855e8c9b100dba4 /litmus
parenta17f532bb1056742dc0ebbb6182bda063836316d (diff)
Adds deadline field to control page and updates it when setting up jobs for release.
Diffstat (limited to 'litmus')
-rw-r--r--litmus/jobs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/litmus/jobs.c b/litmus/jobs.c
index 0dd36b9343d6..3f1cb0e2327e 100644
--- a/litmus/jobs.c
+++ b/litmus/jobs.c
@@ -17,6 +17,10 @@ static inline void setup_release(struct task_struct *t, lt_t release)
17 17
18 /* update job sequence number */ 18 /* update job sequence number */
19 t->rt_param.job_params.job_no++; 19 t->rt_param.job_params.job_no++;
20
21 /* add the deadline to */
22 if(has_control_page(t))
23 get_control_page(t)->deadline = t->rt_param.job_params.deadline;
20} 24}
21 25
22void prepare_for_next_period(struct task_struct *t) 26void prepare_for_next_period(struct task_struct *t)