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/cpudeadline.c | |
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/cpudeadline.c')
-rw-r--r-- | kernel/sched/cpudeadline.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/kernel/sched/cpudeadline.c b/kernel/sched/cpudeadline.c index c6acb07466bb..5a75b08cfd85 100644 --- a/kernel/sched/cpudeadline.c +++ b/kernel/sched/cpudeadline.c @@ -31,11 +31,6 @@ static inline int right_child(int i) return (i << 1) + 2; } -static inline int dl_time_before(u64 a, u64 b) -{ - return (s64)(a - b) < 0; -} - static void cpudl_exchange(struct cpudl *cp, int a, int b) { int cpu_a = cp->elements[a].cpu, cpu_b = cp->elements[b].cpu; |