timers/nohz: Update NOHZ load in remote tick
authorPeter Zijlstra (Intel) <peterz@infradead.org>
Sat, 11 Jan 2020 09:53:39 +0000 (04:53 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Mar 2020 15:43:36 +0000 (16:43 +0100)
commit166d6008fa2aba1cd1291590254eca8f2644d1a3
treea8866e4a97a5c644d04aca0b18425a27fd7acec1
parent5a309e3bf1e8ffce76caf497e8b5889902c09398
timers/nohz: Update NOHZ load in remote tick

[ Upstream commit ebc0f83c78a2d26384401ecf2d2fa48063c0ee27 ]

The way loadavg is tracked during nohz only pays attention to the load
upon entering nohz.  This can be particularly noticeable if full nohz is
entered while non-idle, and then the cpu goes idle and stays that way for
a long time.

Use the remote tick to ensure that full nohz cpus report their deltas
within a reasonable time.

[ swood: Added changelog and removed recheck of stopped tick. ]

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Scott Wood <swood@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lkml.kernel.org/r/1578736419-14628-3-git-send-email-swood@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/sched/nohz.h
kernel/sched/core.c
kernel/sched/loadavg.c