aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManohar Vanga <mvanga@mpi-sws.org>2012-10-03 18:35:53 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2012-11-27 13:50:17 -0500
commite2c4a5f574548f7b2b1d55adab3b02fb2d068ea3 (patch)
tree0730a4ca08294cd954f56639e516905164914896
parentb7012aa7edba4b88906fc39b9005ff4dae69be59 (diff)
litmus: use is_present() instead of using rt_param->present
Signed-off-by: Manohar Vanga <mvanga@mpi-sws.org>
-rw-r--r--litmus/sched_pfair.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/litmus/sched_pfair.c b/litmus/sched_pfair.c
index 58f7fc9e8363..6a89b003306c 100644
--- a/litmus/sched_pfair.c
+++ b/litmus/sched_pfair.c
@@ -254,7 +254,7 @@ static void check_preempt(struct task_struct* t)
254{ 254{
255 int cpu = NO_CPU; 255 int cpu = NO_CPU;
256 if (tsk_rt(t)->linked_on != tsk_rt(t)->scheduled_on && 256 if (tsk_rt(t)->linked_on != tsk_rt(t)->scheduled_on &&
257 tsk_rt(t)->present) { 257 is_present(t)) {
258 /* the task can be scheduled and 258 /* the task can be scheduled and
259 * is not scheduled where it ought to be scheduled 259 * is not scheduled where it ought to be scheduled
260 */ 260 */
@@ -310,7 +310,7 @@ static int advance_subtask(quanta_t time, struct task_struct* t, int cpu)
310 int to_relq; 310 int to_relq;
311 p->cur = (p->cur + 1) % p->quanta; 311 p->cur = (p->cur + 1) % p->quanta;
312 if (!p->cur) { 312 if (!p->cur) {
313 if (tsk_rt(t)->present) { 313 if (is_present(t)) {
314 /* The job overran; we start a new budget allocation. */ 314 /* The job overran; we start a new budget allocation. */
315 pfair_prepare_next_period(t); 315 pfair_prepare_next_period(t);
316 } else { 316 } else {
@@ -598,7 +598,7 @@ static int safe_to_schedule(struct task_struct* t, int cpu)
598 "scheduled already on %d.\n", cpu, where); 598 "scheduled already on %d.\n", cpu, where);
599 return 0; 599 return 0;
600 } else 600 } else
601 return tsk_rt(t)->present && !is_completed(t); 601 return is_present(t) && !is_completed(t);
602} 602}
603 603
604static struct task_struct* pfair_schedule(struct task_struct * prev) 604static struct task_struct* pfair_schedule(struct task_struct * prev)