diff options
Diffstat (limited to 'kernel/include/linux/sched/deadline.h')
-rw-r--r-- | kernel/include/linux/sched/deadline.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/include/linux/sched/deadline.h b/kernel/include/linux/sched/deadline.h index 9d303b884..9089a2ae9 100644 --- a/kernel/include/linux/sched/deadline.h +++ b/kernel/include/linux/sched/deadline.h @@ -21,4 +21,9 @@ static inline int dl_task(struct task_struct *p) return dl_prio(p->prio); } +static inline bool dl_time_before(u64 a, u64 b) +{ + return (s64)(a - b) < 0; +} + #endif /* _SCHED_DEADLINE_H */ |