From d97c84a58867f481fede002fbd1510fc51b34e9e Mon Sep 17 00:00:00 2001 From: Namhoon Kim Date: Mon, 1 May 2017 14:13:05 -0400 Subject: RTSS 2017 submission --- litmus/jobs.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'litmus/jobs.c') diff --git a/litmus/jobs.c b/litmus/jobs.c index 59c29d517074..368e0b308f3f 100644 --- a/litmus/jobs.c +++ b/litmus/jobs.c @@ -21,6 +21,7 @@ static inline void setup_release(struct task_struct *t, lt_t release) /* update job sequence number */ t->rt_param.job_params.job_no++; } + #define INIT_PHASE_LENGTH_NS (1000000000) void prepare_for_next_period(struct task_struct *t) @@ -34,6 +35,8 @@ void prepare_for_next_period(struct task_struct *t) (long long)litmus_clock() - (long long)t->rt_param.job_params.deadline; + /* Mode 0 is used for initializations * + * Use sporadic releases for all tasks not to overutilize cpus in mode 0 */ if (tsk_rt(t)->sporadic_release) { TRACE_TASK(t, "sporadic release at %llu\n", tsk_rt(t)->sporadic_release_time + INIT_PHASE_LENGTH_NS*(tsk_rt(t)->job_params.job_no)); -- cgit v1.2.2