All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2][RFC v6] Ignore bogus sleep time if pm_trace is enabled
@ 2016-11-08  9:00 ` Chen Yu
  0 siblings, 0 replies; 11+ messages in thread
From: Chen Yu @ 2016-11-08  9:00 UTC (permalink / raw)
  To: x86-DgEjT+Ai2ygdnm+yROfE0A
  Cc: Thomas Gleixner, Rafael J. Wysocki, Len Brown, John Stultz,
	Xunlei Pang, linux-pm-u79uwXL29TY76Z2rM5mHXA,
	rtc-linux-/JYPxA39Uh5TLH3MbocFFw,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Chen Yu

This patch set is based on Thomas's previous solution, to bypass
the bogus CMOS-RTC sleep time after resumed, thus to avoid damage
to timekeeping system. The bogus sleep time comes from pm_trace,
which might use CMOS-RTC for debugging purpose.

Meanwhile, a solution to save/restore of CMOS-RTC is also proposed to give
better user experience. 

Chen Yu (2):
  timekeeping: Ignore the bogus sleep time if pm_trace is enabled
  PM / sleep: save/restore RTC time after resumed if pm_trace enabled

 arch/x86/kernel/rtc.c       |  9 +++++++++
 drivers/base/power/trace.c  | 31 +++++++++++++++++++++++++++++++
 drivers/rtc/rtc-cmos.c      |  7 +++++++
 include/linux/mc146818rtc.h |  1 +
 include/linux/pm-trace.h    |  9 ++++++++-
 5 files changed, 56 insertions(+), 1 deletion(-)

-- 
2.7.4

-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.

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

end of thread, other threads:[~2016-11-08 12:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-08  9:00 [PATCH 0/2][RFC v6] Ignore bogus sleep time if pm_trace is enabled Chen Yu
2016-11-08  9:00 ` Chen Yu
2016-11-08  9:00 ` [rtc-linux] " Chen Yu
     [not found] ` <cover.1478589736.git.yu.c.chen-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2016-11-08  9:01   ` [PATCH 1/2][RFC v6] timekeeping: Ignore the " Chen Yu
2016-11-08  9:01     ` Chen Yu
2016-11-08  9:01     ` [rtc-linux] " Chen Yu
     [not found]     ` <e0ed3331627184f3da6243b00cfa69dd78e85514.1478589736.git.yu.c.chen-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2016-11-08 12:50       ` Chen Yu
2016-11-08 12:50         ` Chen Yu
2016-11-08 12:50         ` [rtc-linux] " Chen Yu
2016-11-08  9:02 ` [PATCH 2/2][RFC v6] PM / sleep: save/restore RTC time after resumed if pm_trace enabled Chen Yu
2016-11-08 12:43   ` Chen Yu

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.