clocksource: start CMT at clocksource resume
authorMagnus Damm <damm@opensource.se>
Tue, 2 Feb 2010 22:41:40 +0000 (14:41 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 5 Feb 2010 13:54:10 +0000 (14:54 +0100)
commitc81628848af8a01f103acc8166299c698898a8f4
tree72ecaeb2c202eff4fe0f7cd0ab1120a1e1c7d282
parentc54a42b19fbaae4e9f212322ecca25a6bc95c1ba
clocksource: start CMT at clocksource resume

Add code to start the CMT timer on clocksource resume.  While at it handle
the suspend case as well.  Remove the platform device specific suspend
calls.

This makes sure the timer is started during sysdev_resume().  Without this
patch the clocksource may be read as suspended, this after sysdev resume
but before platform device resume.

Signed-off-by: Magnus Damm <damm@opensource.se>
Cc: john stultz <johnstul@us.ibm.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/clocksource/sh_cmt.c