All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Support SSTC while PM operations
@ 2024-08-29  3:38 ` Nick Hu
  0 siblings, 0 replies; 26+ messages in thread
From: Nick Hu @ 2024-08-29  3:38 UTC (permalink / raw)
  To: greentime.hu, zong.li, Rafael J. Wysocki, Pavel Machek,
	Paul Walmsley, Palmer Dabbelt, Albert Ou, Daniel Lezcano,
	Thomas Gleixner, Andrew Jones, Samuel Holland, Conor Dooley,
	Sunil V L, Nick Hu, linux-pm, linux-riscv, linux-kernel

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


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2024-08-30  7:01 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-29  3:38 [PATCH 0/2] Support SSTC while PM operations Nick Hu
2024-08-29  3:38 ` Nick Hu
2024-08-29  3:38 ` [PATCH 1/2] riscv: Add stimecmp save and restore Nick Hu
2024-08-29  3:38   ` Nick Hu
2024-08-29  5:18   ` Anup Patel
2024-08-29  5:18     ` Anup Patel
2024-08-29  6:16     ` Nick Hu
2024-08-29  6:16       ` Nick Hu
2024-08-29  7:59   ` Andrew Jones
2024-08-29  7:59     ` Andrew Jones
2024-08-30  5:53     ` Nick Hu
2024-08-30  5:53       ` Nick Hu
2024-08-29  3:39 ` [PATCH 2/2] time-riscv: Stop stimecmp when cpu hotplug Nick Hu
2024-08-29  3:39   ` Nick Hu
2024-08-29  5:18   ` Anup Patel
2024-08-29  5:18     ` Anup Patel
2024-08-29  6:23     ` Nick Hu
2024-08-29  6:23       ` Nick Hu
2024-08-29  6:49       ` Anup Patel
2024-08-29  6:49         ` Anup Patel
2024-08-30  5:56         ` Nick Hu
2024-08-30  5:56           ` Nick Hu
2024-08-29 13:43   ` Thomas Gleixner
2024-08-29 13:43     ` Thomas Gleixner
2024-08-30  5:56     ` Nick Hu
2024-08-30  5:56       ` Nick Hu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.