From 9905410d242ecefacc8d7ebc0e6631b1f8d29316 Mon Sep 17 00:00:00 2001 From: Mac Mollison Date: Wed, 10 Nov 2010 17:44:43 -0500 Subject: Simplify ghost job calculation --- litmus/sched_mc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/litmus/sched_mc.c b/litmus/sched_mc.c index 4889fedbfe90..91995c95af5e 100644 --- a/litmus/sched_mc.c +++ b/litmus/sched_mc.c @@ -490,11 +490,7 @@ static noinline void job_completion(struct task_struct *t, int forced) prepare_for_next_period(t); } else { - /* not sure if this is OK since exec_time is only updated at - ticks */ - t->rt_param.job_params.ghost_budget = - t->rt_param.job_params.exec_cost - - t->rt_param.job_params.exec_time; + t->rt_param.job_params.ghost_budget = budget_remaining(t) } if (is_released(t, litmus_clock())) sched_trace_task_release(t); -- cgit v1.2.2