aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2009-04-02 16:06:03 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2009-04-02 16:06:03 -0400
commite37350e9f0b3921aa01663c79239201aaeea7374 (patch)
tree0897183ce4a74082a57c015adbe1eec88082b4d3 /include
parent9ab2eac537d436f3321f2c2f74fa608e393d9124 (diff)
move task present flag from PFAIR to Litmus core
Other quantum-based plugins also require the present flag. Hence, move it to the core data structure
Diffstat (limited to 'include')
-rw-r--r--include/litmus/litmus.h6
-rw-r--r--include/litmus/rt_param.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/include/litmus/litmus.h b/include/litmus/litmus.h
index 7ef5a62d67..6f82947bcf 100644
--- a/include/litmus/litmus.h
+++ b/include/litmus/litmus.h
@@ -198,6 +198,12 @@ static inline int is_np(struct task_struct *t)
198 198
199#endif 199#endif
200 200
201static inline int is_present(struct task_struct* t)
202{
203 return t && tsk_rt(t)->present;
204}
205
206
201/* make the unit explicit */ 207/* make the unit explicit */
202typedef unsigned long quanta_t; 208typedef unsigned long quanta_t;
203 209
diff --git a/include/litmus/rt_param.h b/include/litmus/rt_param.h
index 403ebc8cc9..26b2a4b45e 100644
--- a/include/litmus/rt_param.h
+++ b/include/litmus/rt_param.h
@@ -77,6 +77,9 @@ struct rt_param {
77 /* do we need to check for srp blocking? */ 77 /* do we need to check for srp blocking? */
78 unsigned int srp_non_recurse:1; 78 unsigned int srp_non_recurse:1;
79 79
80 /* is the task present? (true if it can be scheduled) */
81 unsigned int present:1;
82
80 /* user controlled parameters */ 83 /* user controlled parameters */
81 struct rt_task task_params; 84 struct rt_task task_params;
82 85