diff options
author | Mac Mollison <mollison@cs.unc.edu> | 2010-11-10 17:44:43 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2011-08-25 14:41:19 -0400 |
commit | 5014ed78d211e7776fd1570b6fd6f278e4e344c1 (patch) | |
tree | 070342ef881f49d729d717f4bee3f24e52a31cc1 | |
parent | e78fa87d1debd08e5c14a48eac37ef1459c12e41 (diff) |
Simplify ghost job calculation
-rw-r--r-- | litmus/sched_mc.c | 6 |
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); |