]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - include/linux/sched/deadline.h
1 #ifndef _LINUX_SCHED_DEADLINE_H
2 #define _LINUX_SCHED_DEADLINE_H
4 #include <linux/sched.h>
7 * SCHED_DEADLINE tasks has negative priorities, reflecting
8 * the fact that any of them has higher prio than RT and
14 static inline int dl_prio(int prio
)
16 if (unlikely(prio
< MAX_DL_PRIO
))
21 static inline int dl_task(struct task_struct
*p
)
23 return dl_prio(p
->prio
);
26 static inline bool dl_time_before(u64 a
, u64 b
)
28 return (s64
)(a
- b
) < 0;
31 #endif /* _LINUX_SCHED_DEADLINE_H */