diff options
Diffstat (limited to 'litmus/jobs.c')
-rw-r--r-- | litmus/jobs.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
21 | /* update job sequence number */ | 21 | /* update job sequence number */ |
22 | t->rt_param.job_params.job_no++; | 22 | t->rt_param.job_params.job_no++; |
23 | } | 23 | } |
24 | |||
24 | #define INIT_PHASE_LENGTH_NS (1000000000) | 25 | #define INIT_PHASE_LENGTH_NS (1000000000) |
25 | 26 | ||
26 | void prepare_for_next_period(struct task_struct *t) | 27 | void prepare_for_next_period(struct task_struct *t) |
@@ -34,6 +35,8 @@ void prepare_for_next_period(struct task_struct *t) | |||
34 | (long long)litmus_clock() - | 35 | (long long)litmus_clock() - |
35 | (long long)t->rt_param.job_params.deadline; | 36 | (long long)t->rt_param.job_params.deadline; |
36 | 37 | ||
38 | /* Mode 0 is used for initializations * | ||
39 | * Use sporadic releases for all tasks not to overutilize cpus in mode 0 */ | ||
37 | if (tsk_rt(t)->sporadic_release) { | 40 | if (tsk_rt(t)->sporadic_release) { |
38 | TRACE_TASK(t, "sporadic release at %llu\n", | 41 | TRACE_TASK(t, "sporadic release at %llu\n", |
39 | tsk_rt(t)->sporadic_release_time + INIT_PHASE_LENGTH_NS*(tsk_rt(t)->job_params.job_no)); | 42 | tsk_rt(t)->sporadic_release_time + INIT_PHASE_LENGTH_NS*(tsk_rt(t)->job_params.job_no)); |