]> git.baikalelectronics.ru Git - kernel.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)
commit457e2416a145a5ceb531638cc9d14a241d07b32e
treee0837d6a5778c9bfa0a698f10a7cbedf9cf76cd0
parentf07f0eaeb781f7a1a4daad052a135959bd944ddb
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