aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/sched_cedf.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/sched_cedf.c')
-rw-r--r--litmus/sched_cedf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/litmus/sched_cedf.c b/litmus/sched_cedf.c
index 09caa509a0f4..7d5ca1c49ab8 100644
--- a/litmus/sched_cedf.c
+++ b/litmus/sched_cedf.c
@@ -380,7 +380,6 @@ static noinline void link_task_to_cpu(struct task_struct* linked,
380 380
381 /* Link new task to CPU. */ 381 /* Link new task to CPU. */
382 if (linked) { 382 if (linked) {
383 tsk_rt(linked)->completed = 0;
384 /* handle task is already scheduled somewhere! */ 383 /* handle task is already scheduled somewhere! */
385 on_cpu = linked->rt_param.scheduled_on; 384 on_cpu = linked->rt_param.scheduled_on;
386 if (on_cpu != NO_CPU) { 385 if (on_cpu != NO_CPU) {
@@ -618,7 +617,7 @@ static noinline void job_completion(struct task_struct *t, int forced)
618 now, forced); 617 now, forced);
619 618
620 /* set flags */ 619 /* set flags */
621 tsk_rt(t)->completed = 1; 620 tsk_rt(t)->completed = 0;
622 621
623 if (!forced && do_backlogged_job) { 622 if (!forced && do_backlogged_job) {
624 /* Don't advance deadline/refresh budget. Use the remaining budget for 623 /* Don't advance deadline/refresh budget. Use the remaining budget for
@@ -647,7 +646,6 @@ static noinline void job_completion(struct task_struct *t, int forced)
647 unlink(t); 646 unlink(t);
648 647
649 /* release or arm next job */ 648 /* release or arm next job */
650 tsk_rt(t)->completed = 0;
651 if (is_running(t)) { 649 if (is_running(t)) {
652 /* is our next job a backlogged job? */ 650 /* is our next job a backlogged job? */
653 if (do_backlogged_job) { 651 if (do_backlogged_job) {