Lines Matching refs:policy
163 static inline int idle_policy(int policy) in idle_policy() argument
165 return policy == SCHED_IDLE; in idle_policy()
167 static inline int fair_policy(int policy) in fair_policy() argument
169 return policy == SCHED_NORMAL || policy == SCHED_BATCH; in fair_policy()
172 static inline int rt_policy(int policy) in rt_policy() argument
174 return policy == SCHED_FIFO || policy == SCHED_RR; in rt_policy()
177 static inline int dl_policy(int policy) in dl_policy() argument
179 return policy == SCHED_DEADLINE; in dl_policy()
181 static inline bool valid_policy(int policy) in valid_policy() argument
183 return idle_policy(policy) || fair_policy(policy) || in valid_policy()
184 rt_policy(policy) || dl_policy(policy); in valid_policy()
189 return idle_policy(p->policy); in task_has_idle_policy()
194 return rt_policy(p->policy); in task_has_rt_policy()
199 return dl_policy(p->policy); in task_has_dl_policy()
347 extern int sched_dl_overflow(struct task_struct *p, int policy, const struct sched_attr *attr);