[PATCH] GTOD: persistent clock support

Persistent clock support: do proper timekeeping across suspend/resume.

[bunk@stusta.de: cleanup]
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
John Stultz
2007-02-16 01:27:30 -08:00
committed by Linus Torvalds
parent 9f907c0144
commit 411187fb05
4 changed files with 50 additions and 1 deletions

View File

@@ -291,6 +291,14 @@ static unsigned long ktime_divns(const ktime_t kt, s64 div)
# define ktime_divns(kt, div) (unsigned long)((kt).tv64 / (div))
#endif /* BITS_PER_LONG >= 64 */
/*
* Timekeeping resumed notification
*/
void hrtimer_notify_resume(void)
{
clock_was_set();
}
/*
* Counterpart to lock_timer_base above:
*/