]> 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>
Mon, 3 Sep 2012 23:36:01 +0000 (01:36 +0200)
commitadc78e6b9946a4b22e22403d961f3b03c469e5d3
treee0837d6a5778c9bfa0a698f10a7cbedf9cf76cd0
parent77f827de07432a74821cf0f831d699544b2d474f
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