[PATCH 0/2] Support SSTC while PM operations

Nick Hu posted 2 patches 1 year, 3 months ago
There is a newer version of this series
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(-)
[PATCH 0/2] Support SSTC while PM operations
Posted by Nick Hu 1 year, 3 months ago
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