[PATCH 0/2] Support SSTC while PM operations
From: Nick Hu
Date: Wed Aug 28 2024 - 23:39:43 EST
When the cpu is going to be hotplug, stop the stimecmp to prevent pending
interrupt.
When the cpu is going to be suspended, save the stimecmp before entering
the suspend state and restore it in the resume path.
Nick Hu (2):
riscv: Add stimecmp save and restore
time-riscv: Stop stimecmp when cpu hotplug
arch/riscv/include/asm/suspend.h | 4 ++++
arch/riscv/kernel/suspend.c | 13 +++++++++++++
drivers/clocksource/timer-riscv.c | 22 +++++++++++++++-------
3 files changed, 32 insertions(+), 7 deletions(-)
--
2.34.1