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
11 static inline int dl_prio(int prio)
13 if (unlikely(prio < MAX_DL_PRIO))
18 static inline int dl_task(struct task_struct *p)
20 return dl_prio(p->prio);
23 static inline bool dl_time_before(u64 a, u64 b)
25 return (s64)(a - b) < 0;