mbox series

[0/2] Support SSTC while PM operations

Message ID 20240829033904.477200-1-nick.hu@sifive.com (mailing list archive)
Headers show
Series Support SSTC while PM operations | expand

Message

Nick Hu Aug. 29, 2024, 3:38 a.m. UTC
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(-)