aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2011-01-28 19:04:08 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2011-02-01 16:30:41 -0500
commite593c9dbe858c82e284ff85e625837ae3ab32f1c (patch)
treeef1b5a608545ddf276517b85f57999c925242627 /include/litmus
parentfc6482bb7a6a638474565c90159997bd59069297 (diff)
EDF: support priority boosting
While we are at it, simplify edf_higher_prio() a bit.
Diffstat (limited to 'include/litmus')
-rw-r--r--include/litmus/litmus.h3
-rw-r--r--include/litmus/rt_param.h7
2 files changed, 10 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
57inline static int budget_exhausted(struct task_struct* t) 60inline 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);
diff --git a/include/litmus/rt_param.h b/include/litmus/rt_param.h
index a7a183f34a80..5de422c742f6 100644
--- a/include/litmus/rt_param.h
+++ b/include/litmus/rt_param.h
@@ -108,6 +108,13 @@ struct rt_param {
108 /* is the task present? (true if it can be scheduled) */ 108 /* is the task present? (true if it can be scheduled) */
109 unsigned int present:1; 109 unsigned int present:1;
110 110
111#ifdef CONFIG_LITMUS_LOCKING
112 /* Is the task being priority-boosted by a locking protocol? */
113 unsigned int priority_boosted:1;
114 /* If so, when did this start? */
115 lt_t boost_start_time;
116#endif
117
111 /* user controlled parameters */ 118 /* user controlled parameters */
112 struct rt_task task_params; 119 struct rt_task task_params;
113 120