]> git.ipfire.org Git - thirdparty/linux.git/commit
arm64/watchdog_hld: Add a cpufreq notifier for update watchdog thresh
authorYicong Yang <yangyicong@hisilicon.com>
Tue, 1 Jul 2025 11:02:14 +0000 (19:02 +0800)
committerWill Deacon <will@kernel.org>
Fri, 4 Jul 2025 12:17:30 +0000 (13:17 +0100)
commit7a884442aeb694c28ac90a1fb023856039ef57ee
tree1281b753c44fb763c653dd6689b51c78f056369f
parent60bc47b5a0b164082d448815d7db3066266aa3ed
arm64/watchdog_hld: Add a cpufreq notifier for update watchdog thresh

arm64 depends on the cpufreq driver to gain the maximum cpu frequency
to convert the watchdog_thresh to perf event period. cpufreq drivers
like cppc_cpufreq will be initialized lately after the initializing of
the hard lockup detector so just use a safe cpufreq which will be
inaccurency. Use a cpufreq notifier to adjust the event's period to
a more accurate one.

Reviewed-by: Jie Zhan <zhanjie9@hisilicon.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Link: https://lore.kernel.org/r/20250701110214.27242-3-yangyicong@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/watchdog_hld.c