diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-01-28 19:04:08 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-02-01 16:30:41 -0500 |
commit | e593c9dbe858c82e284ff85e625837ae3ab32f1c (patch) | |
tree | ef1b5a608545ddf276517b85f57999c925242627 /include/litmus/litmus.h | |
parent | fc6482bb7a6a638474565c90159997bd59069297 (diff) |
EDF: support priority boosting
While we are at it, simplify edf_higher_prio() a bit.
Diffstat (limited to 'include/litmus/litmus.h')
-rw-r--r-- | include/litmus/litmus.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/litmus/litmus.h b/include/litmus/litmus.h index 8971b25f23e6..b38d39a7461d 100644 --- a/include/litmus/litmus.h +++ b/include/litmus/litmus.h | |||
@@ -54,6 +54,9 @@ void litmus_exit_task(struct task_struct *tsk); | |||
54 | #define get_release(t) (tsk_rt(t)->job_params.release) | 54 | #define get_release(t) (tsk_rt(t)->job_params.release) |
55 | #define get_class(t) (tsk_rt(t)->task_params.cls) | 55 | #define get_class(t) (tsk_rt(t)->task_params.cls) |
56 | 56 | ||
57 | #define is_priority_boosted(t) (tsk_rt(t)->priority_boosted) | ||
58 | #define get_boost_start(t) (tsk_rt(t)->boost_start_time) | ||
59 | |||
57 | inline static int budget_exhausted(struct task_struct* t) | 60 | inline static int budget_exhausted(struct task_struct* t) |
58 | { | 61 | { |
59 | return get_exec_time(t) >= get_exec_cost(t); | 62 | return get_exec_time(t) >= get_exec_cost(t); |