]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Add NOHZ balancer flag for nohz.next_balance updates
authorValentin Schneider <valentin.schneider@arm.com>
Mon, 23 Aug 2021 11:16:59 +0000 (12:16 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 5 Oct 2021 13:51:30 +0000 (15:51 +0200)
commitad48dadb884fa451518c20aa61a3aab4ef831349
tree456c643db81f5548a2d0395a234f5c5aee789db9
parent87a799989d15ec119f470890374f7bd919def84c
sched/fair: Add NOHZ balancer flag for nohz.next_balance updates

A following patch will trigger NOHZ idle balances as a means to update
nohz.next_balance. Vincent noted that blocked load updates can have
non-negligible overhead, which should be avoided if the intent is to only
update nohz.next_balance.

Add a new NOHZ balance kick flag, NOHZ_NEXT_KICK. Gate NOHZ blocked load
update by the presence of NOHZ_STATS_KICK - currently all NOHZ balance
kicks will have the NOHZ_STATS_KICK flag set, so no change in behaviour is
expected.

Suggested-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Valentin Schneider <valentin.schneider@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/20210823111700.2842997-2-valentin.schneider@arm.com
kernel/sched/fair.c
kernel/sched/sched.h