From e37350e9f0b3921aa01663c79239201aaeea7374 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Thu, 2 Apr 2009 16:06:03 -0400 Subject: 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 --- include/litmus/litmus.h | 6 ++++++ include/litmus/rt_param.h | 3 +++ 2 files changed, 9 insertions(+) (limited to 'include') 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) #endif +static inline int is_present(struct task_struct* t) +{ + return t && tsk_rt(t)->present; +} + + /* make the unit explicit */ typedef unsigned long quanta_t; 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 { /* do we need to check for srp blocking? */ unsigned int srp_non_recurse:1; + /* is the task present? (true if it can be scheduled) */ + unsigned int present:1; + /* user controlled parameters */ struct rt_task task_params; -- cgit v1.2.2