aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/sched_gsn_edf.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/sched_gsn_edf.c')
-rw-r--r--litmus/sched_gsn_edf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/litmus/sched_gsn_edf.c b/litmus/sched_gsn_edf.c
index ac5c4d836018..5956978ccdbe 100644
--- a/litmus/sched_gsn_edf.c
+++ b/litmus/sched_gsn_edf.c
@@ -251,7 +251,7 @@ static noinline void requeue(struct task_struct* task)
251 /* sanity check before insertion */ 251 /* sanity check before insertion */
252 BUG_ON(is_queued(task)); 252 BUG_ON(is_queued(task));
253 253
254 if (wants_early_release(task) || is_released(task, litmus_clock())) 254 if (is_early_releasing(task) || is_released(task, litmus_clock()))
255 __add_ready(&gsnedf, task); 255 __add_ready(&gsnedf, task);
256 else { 256 else {
257 /* it has got to wait */ 257 /* it has got to wait */
@@ -344,7 +344,7 @@ static noinline void job_completion(struct task_struct *t, int forced)
344 tsk_rt(t)->completed = 1; 344 tsk_rt(t)->completed = 1;
345 /* prepare for next period */ 345 /* prepare for next period */
346 prepare_for_next_period(t); 346 prepare_for_next_period(t);
347 if (wants_early_release(t) || is_released(t, litmus_clock())) 347 if (is_early_releasing(t) || is_released(t, litmus_clock()))
348 sched_trace_task_release(t); 348 sched_trace_task_release(t);
349 /* unlink */ 349 /* unlink */
350 unlink(t); 350 unlink(t);
@@ -578,7 +578,7 @@ static void gsnedf_task_wake_up(struct task_struct *task)
578 578
579 raw_spin_lock_irqsave(&gsnedf_lock, flags); 579 raw_spin_lock_irqsave(&gsnedf_lock, flags);
580 now = litmus_clock(); 580 now = litmus_clock();
581 if (is_tardy(task, now)) { 581 if (is_sporadic(task) && is_tardy(task, now)) {
582 /* new sporadic release */ 582 /* new sporadic release */
583 release_at(task, now); 583 release_at(task, now);
584 sched_trace_task_release(task); 584 sched_trace_task_release(task);