diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-10-18 16:55:37 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-10-19 09:40:42 -0400 |
commit | 7caae3d71eae4f5307cae98131390e9d10627c01 (patch) | |
tree | 6bc9df950df80d222b3616817e4f606c349fcb93 | |
parent | 576b1ad144f81d3fd3bd37d18dab86cd1e8660b0 (diff) |
Litmus core: enable precise budget enforcement
Update the budget enforcement timer after each scheduling decision.
-rw-r--r-- | litmus/sched_litmus.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/litmus/sched_litmus.c b/litmus/sched_litmus.c index 52afec278ec8..3ed713b8791b 100644 --- a/litmus/sched_litmus.c +++ b/litmus/sched_litmus.c | |||
@@ -1,6 +1,7 @@ | |||
1 | /* This file is included from kernel/sched.c */ | 1 | /* This file is included from kernel/sched.c */ |
2 | 2 | ||
3 | #include <litmus/litmus.h> | 3 | #include <litmus/litmus.h> |
4 | #include <litmus/budget.h> | ||
4 | #include <litmus/sched_plugin.h> | 5 | #include <litmus/sched_plugin.h> |
5 | 6 | ||
6 | static void update_time_litmus(struct rq *rq, struct task_struct *p) | 7 | static void update_time_litmus(struct rq *rq, struct task_struct *p) |
@@ -148,6 +149,7 @@ litmus_schedule(struct rq *rq, struct task_struct *prev) | |||
148 | next->se.exec_start = rq->clock; | 149 | next->se.exec_start = rq->clock; |
149 | } | 150 | } |
150 | 151 | ||
152 | update_enforcement_timer(next); | ||
151 | return next; | 153 | return next; |
152 | } | 154 | } |
153 | 155 | ||