aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMac Mollison <mollison@cs.unc.edu>2010-11-10 17:44:43 -0500
committerMac Mollison <mollison@cs.unc.edu>2010-11-10 17:44:43 -0500
commit9905410d242ecefacc8d7ebc0e6631b1f8d29316 (patch)
tree26e40acd9cac053fc9b835376f46947a91860812
parenta5d2504b052175309cca5afbafb9103a512b361a (diff)
Simplify ghost job calculation
-rw-r--r--litmus/sched_mc.c6
1 files changed, 1 insertions, 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)
490 prepare_for_next_period(t); 490 prepare_for_next_period(t);
491 } 491 }
492 else { 492 else {
493 /* not sure if this is OK since exec_time is only updated at 493 t->rt_param.job_params.ghost_budget = budget_remaining(t)
494 ticks */
495 t->rt_param.job_params.ghost_budget =
496 t->rt_param.job_params.exec_cost -
497 t->rt_param.job_params.exec_time;
498 } 494 }
499 if (is_released(t, litmus_clock())) 495 if (is_released(t, litmus_clock()))
500 sched_trace_task_release(t); 496 sched_trace_task_release(t);