]> git.karo-electronics.de Git - karo-tx-linux.git/commit
timekeeping: Add suspend and resume of clock event devices
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 5 Aug 2012 23:40:41 +0000 (01:40 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 17 Aug 2012 17:38:44 +0000 (19:38 +0200)
commit29d189057f1aba4a30e0131b8f0522507c434101
tree71e5870fc15a24a277d5ae768be5be6a80103d57
parent192ae5588505d7e9d9ddf97d2e4ce9aac76bcd45
timekeeping: Add suspend and resume of clock event devices

Some clock event devices, for example such that belong to PM domains,
need to be handled in a spcial way during the timekeeping suspend
and resume (which takes place in the system core, or "syscore",
stages of system power transitions) in analogy with clock sources.

Introduce .suspend() and .resume() callbacks for clock event devices
that will be executed by timekeeping_suspend/_resume(), respectively,
next the the clock sources' .suspend() and .resume() callbacks.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
include/linux/clockchips.h
kernel/time/clockevents.c
kernel/time/timekeeping.c