linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PM: s2idle: Introduce syscore callbacks in s2idle flow
@ 2020-09-01  7:04 Claude Yen
  2020-09-01  7:04 ` [PATCH 1/1] " Claude Yen
  2020-09-01 11:57 ` [PATCH] " Rafael J. Wysocki
  0 siblings, 2 replies; 7+ messages in thread
From: Claude Yen @ 2020-09-01  7:04 UTC (permalink / raw)
  To: Rafael J. Wysocki, Daniel Lezcano, Frederic Weisbecker,
	Thomas Gleixner, Ingo Molnar, Matthias Brugger, Bjorn Andersson,
	Greg Kroah-Hartman, Stephen Boyd, Douglas Anderson
  Cc: wsd_upstream, linux-mediatek, linux-kernel, linux-arm-kernel, linux-pm

This series based on 5.9-rc1
This patch makes s2idle call existing syscore callbacks. Currently,
when s2idle is selected as system suspend method, callbacks hooked
by register_syscore_ops() will not be triggered. This may induce
unexpected results. 

For example, sched_clock_suspend() was added to s2idle flow in
commit 3f2552f7e9c5 ("timers/sched_clock: Prevent generic sched_clock
wrap caused by tick_freeze()") to fix clock wrap problem. However,
sched_clock_suspend() is originally registered in syscore callback.
With this patch, if another syscore callback is needed in s2idle,
additional migration effort could be saved.



*** BLURB HERE ***

claude.yen (1):
  PM: s2idle: Introduce syscore callbacks in s2idle flow

 drivers/cpuidle/cpuidle.c |   36 ++++++++++++++++++++++++++++++++----
 kernel/cpu_pm.c           |   17 +++++++++++++++++
 kernel/time/tick-common.c |   17 ++---------------
 3 files changed, 51 insertions(+), 19 deletions(-)

--
1.7.9.5
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2020-09-10 12:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-01  7:04 [PATCH] PM: s2idle: Introduce syscore callbacks in s2idle flow Claude Yen
2020-09-01  7:04 ` [PATCH 1/1] " Claude Yen
2020-09-01  7:40   ` Stephen Boyd
2020-09-03  3:43     ` Claude.Yen
2020-09-01 11:57 ` [PATCH] " Rafael J. Wysocki
2020-09-03  2:14   ` Claude.Yen
2020-09-10 12:55     ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).