[PATCH 0/2] Update the watchdog period according to real CPU frequency
Yicong Yang
yangyicong at huawei.com
Thu Mar 6 18:18:09 PST 2025
From: Yicong Yang <yangyicong at hisilicon.com>
watchdog perf needs architecture to provide method for converting the watchdog
thresh to counter period. For arm64 we're using the max CPU frequency for
doing the conversion which is from cpufreq driver. But some cpufreq driver
are registered lately, for example cppc_cpufreq will be registered at late
initcall which is after the initialization of watchdog perf (initialized in
armv8_pmuv3 of device initcall). In such case the period of watchdog will not
be accurate enough. Fix this by registering a cpufreq notifier and update the
watchdog period once the cpufreq driver is initialized.
Yicong Yang (2):
watchdog/perf: Provide function for adjusting the event period
arm64/watchdog_hld: Add a cpufreq notifier for update watchdog thresh
arch/arm64/kernel/watchdog_hld.c | 34 ++++++++++++++++++++++++++++++++
include/linux/nmi.h | 2 ++
kernel/watchdog_perf.c | 21 ++++++++++++++++++++
3 files changed, 57 insertions(+)
--
2.24.0
More information about the linux-arm-kernel
mailing list