diff options
-rw-r--r-- | litmus/sched_pfair.c | 6 |
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 | ||
604 | static struct task_struct* pfair_schedule(struct task_struct * prev) | 604 | static struct task_struct* pfair_schedule(struct task_struct * prev) |