]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Merge for each idle cpu loop of ILB
authorVincent Guittot <vincent.guittot@linaro.org>
Wed, 24 Feb 2021 13:30:04 +0000 (14:30 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 6 Mar 2021 11:40:21 +0000 (12:40 +0100)
commitf3f08078238c7794dd9dc4c5f6445b467e852f0c
treedec1abc82a53513bc4a12915ecb8d83b5b6430fc
parentb7b49a28297516d7a0829aed012b37b2a68046ee
sched/fair: Merge for each idle cpu loop of ILB

Remove the specific case for handling this_cpu outside for_each_cpu() loop
when running ILB. Instead we use for_each_cpu_wrap() and start with the
next cpu after this_cpu so we will continue to finish with this_cpu.

update_nohz_stats() is now used for this_cpu too and will prevents
unnecessary update. We don't need a special case for handling the update of
nohz.next_balance for this_cpu anymore because it is now handled by the
loop like others.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Link: https://lkml.kernel.org/r/20210224133007.28644-5-vincent.guittot@linaro.org
kernel/sched/fair.c