1 /* SPDX-License-Identifier: GPL-2.0 */
4 * SCHED_DEADLINE tasks has negative priorities, reflecting
5 * the fact that any of them has higher prio than RT and
9 #include <linux/sched.h>
13 static inline int dl_prio(int prio)
15 if (unlikely(prio < MAX_DL_PRIO))
20 static inline int dl_task(struct task_struct *p)
22 return dl_prio(p->prio);
25 static inline bool dl_time_before(u64 a, u64 b)
27 return (s64)(a - b) < 0;
33 extern void dl_add_task_root_domain(struct task_struct *p);
34 extern void dl_clear_root_domain(struct root_domain *rd);
36 #endif /* CONFIG_SMP */