aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/sched_cedf.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2013-04-05 18:51:39 -0400
committerGlenn Elliott <gelliott@cs.unc.edu>2013-04-05 18:51:39 -0400
commit5e70dfb03ed2e1bda96e7e8ab26084b2f5402296 (patch)
treed3c35e1f4a50740720e9bd00eb88bad9a552614d /litmus/sched_cedf.c
parent472e2944b12226d9d4407fb702ce98bba76b1b7d (diff)
GEDF, PEDF, and PFP: fixed budget hooks
Diffstat (limited to 'litmus/sched_cedf.c')
-rw-r--r--litmus/sched_cedf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/litmus/sched_cedf.c b/litmus/sched_cedf.c
index e8de5dd18b7f..1bfdef17e519 100644
--- a/litmus/sched_cedf.c
+++ b/litmus/sched_cedf.c
@@ -860,7 +860,7 @@ static void cedf_tick(struct task_struct* t)
860 if (is_realtime(t) && 860 if (is_realtime(t) &&
861 tsk_rt(t)->budget.ops && budget_quantum_tracked(t) && 861 tsk_rt(t)->budget.ops && budget_quantum_tracked(t) &&
862 budget_exhausted(t)) { 862 budget_exhausted(t)) {
863 TRACE_TASK(t, "budget exhausted\n"); 863 TRACE_TASK(t, "budget exhausted\n");
864 budget_state_machine(t,on_exhausted); 864 budget_state_machine(t,on_exhausted);
865 } 865 }
866} 866}
@@ -1499,8 +1499,7 @@ static void cedf_task_exit(struct task_struct * t)
1499 1499
1500 /* disable budget enforcement */ 1500 /* disable budget enforcement */
1501 cedf_untrack_in_top_m(t); 1501 cedf_untrack_in_top_m(t);
1502 if (tsk_rt(t)->budget.ops) 1502 budget_state_machine(t,on_exit);
1503 budget_state_machine(t,on_exit);
1504 1503
1505#ifdef CONFIG_REALTIME_AUX_TASKS 1504#ifdef CONFIG_REALTIME_AUX_TASKS
1506 /* make sure we clean up on our way out */ 1505 /* make sure we clean up on our way out */