aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/sched_pfp.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/sched_pfp.c')
-rw-r--r--litmus/sched_pfp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/litmus/sched_pfp.c b/litmus/sched_pfp.c
index 6113ae376bec..86c4c696c671 100644
--- a/litmus/sched_pfp.c
+++ b/litmus/sched_pfp.c
@@ -126,7 +126,7 @@ static void job_completion(struct task_struct* t, int forced)
126 sched_trace_task_completion(t,forced); 126 sched_trace_task_completion(t,forced);
127 TRACE_TASK(t, "job_completion().\n"); 127 TRACE_TASK(t, "job_completion().\n");
128 128
129 tsk_rt(t)->completed = 1; 129 tsk_rt(t)->completed = 0;
130 prepare_for_next_period(t); 130 prepare_for_next_period(t);
131 if (is_released(t, litmus_clock())) 131 if (is_released(t, litmus_clock()))
132 sched_trace_task_release(t); 132 sched_trace_task_release(t);
@@ -253,7 +253,6 @@ static struct task_struct* pfp_schedule(struct task_struct * prev)
253 253
254 if (next) { 254 if (next) {
255 TRACE_TASK(next, "scheduled at %llu\n", litmus_clock()); 255 TRACE_TASK(next, "scheduled at %llu\n", litmus_clock());
256 tsk_rt(next)->completed = 0;
257 } else { 256 } else {
258 TRACE("becoming idle at %llu\n", litmus_clock()); 257 TRACE("becoming idle at %llu\n", litmus_clock());
259 } 258 }