]> git.ipfire.org Git - thirdparty/linux.git/commit
clocksource/drivers/timer-riscv: Stop stimecmp when cpu hotplug
authorNick Hu <nick.hu@sifive.com>
Wed, 19 Feb 2025 11:41:35 +0000 (19:41 +0800)
committerAlexandre Ghiti <alexghiti@rivosinc.com>
Tue, 18 Mar 2025 12:59:03 +0000 (12:59 +0000)
commit70c93b026ed07078e933583591aa9ca6701cd9da
tree1bb2a0702ae5d968fe33382c2bc467d6ad5670b7
parentffef54ad41101f98ea6dd1dcd71c60bb6b7c8ee9
clocksource/drivers/timer-riscv: Stop stimecmp when cpu hotplug

Stop the timer when the cpu is going to be offline otherwise the
timer interrupt may be pending while performing power-down.

Suggested-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/lkml/20240829033904.477200-3-nick.hu@sifive.com/T/#u
Signed-off-by: Nick Hu <nick.hu@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20250219114135.27764-3-nick.hu@sifive.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
drivers/clocksource/timer-riscv.c