timekeeping: Use syscore_ops instead of sysdev class and sysdev
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 23 Mar 2011 21:16:04 +0000 (22:16 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Wed, 23 Mar 2011 21:16:04 +0000 (22:16 +0100)
commite1a85b2c519551d4792180cdab4074d7e99bf2c9
treeee53aed254043d06a7e30151af6500eab3bf0407
parentf3c6ea1b06c71b43f751b36bd99345369fe911af
timekeeping: Use syscore_ops instead of sysdev class and sysdev

The timekeeping subsystem uses a sysdev class and a sysdev for
executing timekeeping_suspend() after interrupts have been turned off
on the boot CPU (during system suspend) and for executing
timekeeping_resume() before turning on interrupts on the boot CPU
(during system resume).  However, since both of these functions
ignore their arguments, the entire mechanism may be replaced with a
struct syscore_ops object which is simpler.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/timekeeping.c