clocksource/drivers/riscv: Events are stopped during CPU suspend
stable inclusion from stable-v5.10.122 commit d54a51b51851ead86292a0db4a7184d77623bfe2 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5W6OE Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d54a51b51851ead86292a0db4a7184d77623bfe2 -------------------------------- [ Upstream commit 232ccac1 ] 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: 62b01943 ("clocksource: new RISC-V SBI timer driver") Signed-off-by: NSamuel Holland <samuel@sholland.org> Reviewed-by: NAnup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20220509012121.40031-1-samuel@sholland.orgSigned-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com>
Showing
想要评论请 注册 或 登录