[PATCH] clocksource: fix resume logic
commitf34ddce1302d548244c499b2905ab2fe999610c6
authorThomas Gleixner <tglx@linutronix.de>
Wed, 9 May 2007 09:35:15 +0000 (9 02:35 -0700)
committerChris Wright <chrisw@sous-sol.org>
Wed, 23 May 2007 21:32:48 +0000 (23 14:32 -0700)
tree086a1a9fe51f94bf17798bf7bdb1773d2a5205c8
parent8e4a8227450fb3327c244642fca616daa6ca7879
[PATCH] clocksource: fix resume logic

We need to make sure that the clocksources are resumed, when timekeeping is
resumed.  The current resume logic does not guarantee this.

Add a resume function pointer to the clocksource struct, so clocksource
drivers which need to reinitialize the clocksource can provide a resume
function.

Add a resume function, which calls the maybe available clocksource resume
functions and resets the watchdog function, so a stable TSC can be used
accross suspend/resume.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: john stultz <johnstul@us.ibm.com>
Cc: Andi Kleen <ak@suse.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
include/linux/clocksource.h
kernel/time/clocksource.c
kernel/timer.c