]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/riscv: Events are stopped during CPU suspend
authorSamuel Holland <samuel@sholland.org>
Mon, 9 May 2022 01:21:21 +0000 (20:21 -0500)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 18 May 2022 09:08:52 +0000 (11:08 +0200)
commit6475a3b55a3b502e7d571173d4128e24955a874b
tree95ada85f1c62b85ce0b6672fe1021f1e09247288
parent8df775419acfa817b75548a7ddaea930dd0fee20
clocksource/drivers/riscv: Events are stopped during CPU suspend

Some implementations of the SBI time extension depend on hart-local
state (for example, CSRs) that are lost or hardware that is powered
down when a CPU is suspended. To be safe, the clockevents driver
cannot assume that timer IRQs will be received during CPU suspend.

Fixes: b06391d109ab ("clocksource: new RISC-V SBI timer driver")
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20220509012121.40031-1-samuel@sholland.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-riscv.c