diff options
author | Peter Zijlstra (Intel) <peterz@infradead.org> | 2020-01-11 04:53:39 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-01-28 21:36:44 +0100 |
commit | ebc0f83c78a2d26384401ecf2d2fa48063c0ee27 (patch) | |
tree | 5549117417df46bf2e73150903f3856246eff870 /include/linux/sched/nohz.h | |
parent | 488603b815a7514c7009e6fc339d74ed4a30f343 (diff) |
timers/nohz: Update NOHZ load in remote tick
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
Diffstat (limited to 'include/linux/sched/nohz.h')
-rw-r--r-- | include/linux/sched/nohz.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sched/nohz.h b/include/linux/sched/nohz.h index 1abe91ff6e4a..6d67e9a5af6b 100644 --- a/include/linux/sched/nohz.h +++ b/include/linux/sched/nohz.h @@ -15,9 +15,11 @@ static inline void nohz_balance_enter_idle(int cpu) { } #ifdef CONFIG_NO_HZ_COMMON void calc_load_nohz_start(void); +void calc_load_nohz_remote(struct rq *rq); void calc_load_nohz_stop(void); #else static inline void calc_load_nohz_start(void) { } +static inline void calc_load_nohz_remote(struct rq *rq) { } static inline void calc_load_nohz_stop(void) { } #endif /* CONFIG_NO_HZ_COMMON */ |