summaryrefslogtreecommitdiffstats
path: root/kernel/sched
diff options
context:
space:
mode:
authorDietmar Eggemann <dietmar.eggemann@arm.com>2020-06-03 10:03:01 +0200
committerPeter Zijlstra <peterz@infradead.org>2020-06-15 14:10:01 +0200
commit844eb6458facb09d4871a480d8bda06550927a80 (patch)
tree2aad64d6dbc529fe95a054c27ced6ce98b42811c /kernel/sched
parent3dc167ba5729ddd2d8e3fa1841653792c295d3f1 (diff)
downloadlinux-stable-844eb6458facb09d4871a480d8bda06550927a80.tar.gz
linux-stable-844eb6458facb09d4871a480d8bda06550927a80.tar.bz2
linux-stable-844eb6458facb09d4871a480d8bda06550927a80.zip
sched/pelt: Remove redundant cap_scale() definition
Besides in PELT cap_scale() is used in the Deadline scheduler class for scale-invariant bandwidth enforcement. Remove the cap_scale() definition in kernel/sched/pelt.c and keep the one in kernel/sched/sched.h. Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org> Link: https://lkml.kernel.org/r/20200603080304.16548-2-dietmar.eggemann@arm.com
Diffstat (limited to 'kernel/sched')
-rw-r--r--kernel/sched/pelt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/sched/pelt.c b/kernel/sched/pelt.c
index b4b1ff96642f..dea5567e4f72 100644
--- a/kernel/sched/pelt.c
+++ b/kernel/sched/pelt.c
@@ -83,8 +83,6 @@ static u32 __accumulate_pelt_segments(u64 periods, u32 d1, u32 d3)
return c1 + c2 + c3;
}
-#define cap_scale(v, s) ((v)*(s) >> SCHED_CAPACITY_SHIFT)
-
/*
* Accumulate the three separate parts of the sum; d1 the remainder
* of the last (incomplete) period, d2 the span of full periods and d3