From 411187fb05cd11676b0979d9fbf3291db69dbce2 Mon Sep 17 00:00:00 2001 From: John Stultz Date: Fri, 16 Feb 2007 01:27:30 -0800 Subject: [PATCH] GTOD: persistent clock support Persistent clock support: do proper timekeeping across suspend/resume. [bunk@stusta.de: cleanup] Signed-off-by: John Stultz Signed-off-by: Thomas Gleixner Signed-off-by: Ingo Molnar Cc: Roman Zippel Cc: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- kernel/hrtimer.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kernel/hrtimer.c') diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 80666f6cd4f..c0fdb9b6d29 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -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: */ -- cgit v1.2.3