Thomas Gleixner b52f52a093 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>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-09 12:30:56 -07:00
..
2007-05-09 12:30:48 -07:00
2007-05-09 12:30:56 -07:00
2006-09-11 13:32:30 -04:00
2007-02-11 10:51:32 -08:00
2007-05-09 12:30:55 -07:00
2007-05-09 12:30:55 -07:00
2006-12-07 08:39:36 -08:00
2006-12-04 02:00:22 -05:00
2006-09-29 09:18:12 -07:00
2007-05-09 12:30:55 -07:00
2007-05-09 12:30:55 -07:00
2005-04-16 15:20:36 -07:00
2007-05-09 12:30:56 -07:00
2006-12-07 08:39:25 -08:00
2006-07-10 13:24:25 -07:00