sched/fair: Cleanup newidle_balance
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 19 Oct 2021 12:35:37 +0000 (14:35 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Sun, 31 Oct 2021 10:11:38 +0000 (11:11 +0100)
commit8ea9183db4ad8afbcb7089a77c23eaf965b0cacd
treefb529629b90f7ff58c6ce7571adfae771a2ca5cd
parentc5b0a7eefc70150caf23e37bc9d639c68c87a097
sched/fair: Cleanup newidle_balance

update_next_balance() uses sd->last_balance which is not modified by
load_balance() so we can merge the 2 calls in one place.

No functional change

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Link: https://lore.kernel.org/r/20211019123537.17146-6-vincent.guittot@linaro.org
kernel/sched/fair.c