sched/pelt: Cleanup PELT divider
authorVincent Guittot <vincent.guittot@linaro.org>
Fri, 12 Jun 2020 15:47:03 +0000 (17:47 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 15 Jun 2020 12:10:06 +0000 (14:10 +0200)
commit87e867b4269f29dac8190bca13912d08163a277f
treeb41a7a09c81a71c0985f8fc820b903fbc836b29c
parentc49694173da004b1b16082f82f28bd625415fbb2
sched/pelt: Cleanup PELT divider

Factorize in a single place the calculation of the divider to be used to
to compute *_avg from *_sum value

Suggested-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200612154703.23555-1-vincent.guittot@linaro.org
kernel/sched/fair.c
kernel/sched/pelt.c
kernel/sched/pelt.h