aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2012-11-01 11:53:47 -0400
committerJonathan Herman <hermanjl@cs.unc.edu>2012-11-01 11:53:47 -0400
commita6861d766beb9c28eac225413df3b2d7e1eccc42 (patch)
tree8abb8d67a16c05db0e453b0003a3a93d980d6fad
parent40cfdd9814cb1599387d41dc22f5043e27cab672 (diff)
No longer touching exec start for job.
-rw-r--r--litmus/sched_mc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/litmus/sched_mc.c b/litmus/sched_mc.c
index 91e383e0c69b..062b09833d8f 100644
--- a/litmus/sched_mc.c
+++ b/litmus/sched_mc.c
@@ -306,8 +306,7 @@ static void start_crit(struct crit_entry *ce)
306 * preemption, so we don't set this for level-A 306 * preemption, so we don't set this for level-A
307 * tasks. Otherwise reset the budget timer 307 * tasks. Otherwise reset the budget timer
308 */ 308 */
309 task->se.exec_start = litmus_clock(); 309 fire = litmus_clock() + budget_remaining(task);
310 fire = task->se.exec_start + budget_remaining(task);
311 310
312#ifdef CONFIG_MERGE_TIMERS 311#ifdef CONFIG_MERGE_TIMERS
313 add_event(crit_cpu(ce)->event_group, &ce->event, fire); 312 add_event(crit_cpu(ce)->event_group, &ce->event, fire);
@@ -1336,7 +1335,7 @@ static struct task_struct* mc_schedule(struct task_struct* prev)
1336 start = litmus_clock(); 1335 start = litmus_clock();
1337 work = color_sched_out_task(prev); 1336 work = color_sched_out_task(prev);
1338 tsk_rt(prev)->flush = litmus_clock() - start; 1337 tsk_rt(prev)->flush = litmus_clock() - start;
1339 tsk_rt(prev)->flush_work = work; 1338 ++tsk_rt(prev)->flush_work;
1340 } 1339 }
1341 1340
1342 TS_LVLA_SCHED_START; 1341 TS_LVLA_SCHED_START;