linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/2] hrtimer: watchdog: support hrtimer suspend when CPU suspend
@ 2021-06-22  9:06 Wang Qing
  2021-06-22  9:06 ` [PATCH RFC 1/2] hrtimer: " Wang Qing
  2021-06-22  9:06 ` [PATCH RFC 2/2] watchdog: support watchdog " Wang Qing
  0 siblings, 2 replies; 4+ messages in thread
From: Wang Qing @ 2021-06-22  9:06 UTC (permalink / raw)
  To: Thomas Gleixner, Frederic Weisbecker, Ingo Molnar, Andrew Morton,
	Petr Mladek, Wang Qing, Santosh Sivaraj, Peter Zijlstra (Intel),
	linux-kernel

When the CPU suspend, in order to achieve a more power-saving effect,
it is hoped that the CPU sleeps as long as possible, but the timer is an 
important reason for the CPU to wake up. 

In some cases, when the CPU suspend, the timer doesn’t have to work either,
such as watchdog hrtimer. The maximum suspend time of the CPU is 4s if enable
lockup detector, which is unacceptable on some products, and in fact, watchdog
timer can suspend when the cpu suspend.

This is a patch for comments, I'm not sure if there any ill-considerations. 
If this feature is really needed, I will continue to develop.

Wang Qing (2):
  hrtimer: support hrtimer suspend when CPU suspend
  watchdog: support watchdog hrtimer suspend when CPU suspend

 include/linux/hrtimer.h  | 3 +++
 kernel/time/hrtimer.c    | 4 +++-
 kernel/time/tick-sched.c | 7 +++++++
 kernel/watchdog.c        | 3 ++-

-- 
2.7.4


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

end of thread, other threads:[~2021-08-10 14:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22  9:06 [PATCH RFC 0/2] hrtimer: watchdog: support hrtimer suspend when CPU suspend Wang Qing
2021-06-22  9:06 ` [PATCH RFC 1/2] hrtimer: " Wang Qing
2021-08-10 14:58   ` Thomas Gleixner
2021-06-22  9:06 ` [PATCH RFC 2/2] watchdog: support watchdog " Wang Qing

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).