diff options
author | Juri Lelli <juri.lelli@arm.com> | 2015-09-02 11:01:34 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-09-23 09:51:25 +0200 |
commit | 2726d6ce389788c7fe724961a6e1bfe569560088 (patch) | |
tree | 75accba0060b59d37eafb461d3aaf22cf52ba985 /kernel/sched/sched.h | |
parent | 79a89f92cbe31ba6bc50caf211a7ac4d97d0f35f (diff) | |
download | linux-stable-2726d6ce389788c7fe724961a6e1bfe569560088.tar.gz linux-stable-2726d6ce389788c7fe724961a6e1bfe569560088.tar.bz2 linux-stable-2726d6ce389788c7fe724961a6e1bfe569560088.zip |
sched/deadline: Unify dl_time_before() usage
Move dl_time_before() static definition in include/linux/sched/deadline.h
so that it can be used by different parties without being re-defined.
Reported-by: Luca Abeni <luca.abeni@unitn.it>
Signed-off-by: Juri Lelli <juri.lelli@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1441188096-23021-3-git-send-email-juri.lelli@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r-- | kernel/sched/sched.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 3845a711c65e..af6f252e7e34 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -118,11 +118,6 @@ static inline int task_has_dl_policy(struct task_struct *p) return dl_policy(p->policy); } -static inline bool dl_time_before(u64 a, u64 b) -{ - return (s64)(a - b) < 0; -} - /* * Tells if entity @a should preempt entity @b. */ |