aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--litmus/jobs.c3
-rw-r--r--litmus/sched_cedf.c7
-rw-r--r--litmus/sched_gsn_edf.c7
-rw-r--r--litmus/sched_pfp.c3
-rw-r--r--litmus/sched_psn_edf.c3
5 files changed, 2 insertions, 21 deletions
diff --git a/litmus/jobs.c b/litmus/jobs.c
index 32685012503b..89a0810415fa 100644
--- a/litmus/jobs.c
+++ b/litmus/jobs.c
@@ -15,9 +15,6 @@ static inline void setup_release(struct task_struct *t, lt_t release)
15 15
16 /* update job sequence number */ 16 /* update job sequence number */
17 t->rt_param.job_params.job_no++; 17 t->rt_param.job_params.job_no++;
18
19 /* don't confuse Linux */
20 t->rt.time_slice = 1;
21} 18}
22 19
23void prepare_for_next_period(struct task_struct *t) 20void prepare_for_next_period(struct task_struct *t)
diff --git a/litmus/sched_cedf.c b/litmus/sched_cedf.c
index c55743f3970d..458c6421cfce 100644
--- a/litmus/sched_cedf.c
+++ b/litmus/sched_cedf.c
@@ -601,13 +601,6 @@ static void cedf_task_wake_up(struct task_struct *task)
601 release_at(task, now); 601 release_at(task, now);
602 sched_trace_task_release(task); 602 sched_trace_task_release(task);
603 } 603 }
604 else {
605 if (task->rt.time_slice) {
606 /* came back in time before deadline
607 */
608 tsk_rt(task)->completed = 0;
609 }
610 }
611 cedf_job_arrival(task); 604 cedf_job_arrival(task);
612 raw_spin_unlock_irqrestore(&cluster->cluster_lock, flags); 605 raw_spin_unlock_irqrestore(&cluster->cluster_lock, flags);
613} 606}
diff --git a/litmus/sched_gsn_edf.c b/litmus/sched_gsn_edf.c
index 27a89eeb11ac..5a63ef1c580f 100644
--- a/litmus/sched_gsn_edf.c
+++ b/litmus/sched_gsn_edf.c
@@ -583,13 +583,6 @@ static void gsnedf_task_wake_up(struct task_struct *task)
583 release_at(task, now); 583 release_at(task, now);
584 sched_trace_task_release(task); 584 sched_trace_task_release(task);
585 } 585 }
586 else {
587 if (task->rt.time_slice) {
588 /* came back in time before deadline
589 */
590 tsk_rt(task)->completed = 0;
591 }
592 }
593 gsnedf_job_arrival(task); 586 gsnedf_job_arrival(task);
594 raw_spin_unlock_irqrestore(&gsnedf_lock, flags); 587 raw_spin_unlock_irqrestore(&gsnedf_lock, flags);
595} 588}
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 }
diff --git a/litmus/sched_psn_edf.c b/litmus/sched_psn_edf.c
index 4c3ee8f68bc1..e0657bb6db78 100644
--- a/litmus/sched_psn_edf.c
+++ b/litmus/sched_psn_edf.c
@@ -160,7 +160,7 @@ static void job_completion(struct task_struct* t, int forced)
160 sched_trace_task_completion(t,forced); 160 sched_trace_task_completion(t,forced);
161 TRACE_TASK(t, "job_completion().\n"); 161 TRACE_TASK(t, "job_completion().\n");
162 162
163 tsk_rt(t)->completed = 1; 163 tsk_rt(t)->completed = 0;
164 prepare_for_next_period(t); 164 prepare_for_next_period(t);
165} 165}
166 166
@@ -266,7 +266,6 @@ static struct task_struct* psnedf_schedule(struct task_struct * prev)
266 266
267 if (next) { 267 if (next) {
268 TRACE_TASK(next, "scheduled at %llu\n", litmus_clock()); 268 TRACE_TASK(next, "scheduled at %llu\n", litmus_clock());
269 tsk_rt(next)->completed = 0;
270 } else { 269 } else {
271 TRACE("becoming idle at %llu\n", litmus_clock()); 270 TRACE("becoming idle at %llu\n", litmus_clock());
272 } 271 }