aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus
diff options
context:
space:
mode:
authorManohar Vanga <mvanga@mpi-sws.org>2012-10-03 18:30:51 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2012-11-27 13:50:17 -0500
commitb7012aa7edba4b88906fc39b9005ff4dae69be59 (patch)
tree5176a5e920adcb4158d67778b2cdecb1e3cdc4c0 /include/litmus
parente99428ce6786f76b64cfea5da814a7a5cd939de3 (diff)
litmus: get rid of RT_F_SLEEP and RT_F_RUNNING
This patch removes the flags RT_F_SLEEP and RT_F_RUNNING as their name is misleading. This patch replaces them with a 'completed' field in struct rt_param. Signed-off-by: Manohar Vanga <mvanga@mpi-sws.org>
Diffstat (limited to 'include/litmus')
-rw-r--r--include/litmus/litmus.h5
-rw-r--r--include/litmus/rt_param.h5
2 files changed, 8 insertions, 2 deletions
diff --git a/include/litmus/litmus.h b/include/litmus/litmus.h
index 1cb3eaf25740..12770e08990b 100644
--- a/include/litmus/litmus.h
+++ b/include/litmus/litmus.h
@@ -232,6 +232,11 @@ static inline int is_present(struct task_struct* t)
232 return t && tsk_rt(t)->present; 232 return t && tsk_rt(t)->present;
233} 233}
234 234
235static inline int is_completed(struct task_struct* t)
236{
237 return t && tsk_rt(t)->completed;
238}
239
235 240
236/* make the unit explicit */ 241/* make the unit explicit */
237typedef unsigned long quanta_t; 242typedef unsigned long quanta_t;
diff --git a/include/litmus/rt_param.h b/include/litmus/rt_param.h
index 8d9aa07cf324..5539b26588e6 100644
--- a/include/litmus/rt_param.h
+++ b/include/litmus/rt_param.h
@@ -160,6 +160,9 @@ struct rt_param {
160 /* is the task present? (true if it can be scheduled) */ 160 /* is the task present? (true if it can be scheduled) */
161 unsigned int present:1; 161 unsigned int present:1;
162 162
163 /* has the task completed? */
164 unsigned int completed:1;
165
163#ifdef CONFIG_LITMUS_LOCKING 166#ifdef CONFIG_LITMUS_LOCKING
164 /* Is the task being priority-boosted by a locking protocol? */ 167 /* Is the task being priority-boosted by a locking protocol? */
165 unsigned int priority_boosted:1; 168 unsigned int priority_boosted:1;
@@ -246,8 +249,6 @@ struct rt_param {
246}; 249};
247 250
248/* Possible RT flags */ 251/* Possible RT flags */
249#define RT_F_RUNNING 0x00000000
250#define RT_F_SLEEP 0x00000001
251#define RT_F_EXIT_SEM 0x00000008 252#define RT_F_EXIT_SEM 0x00000008
252 253
253#endif 254#endif