aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/time/timekeeping.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
index acc417b5a9b7..f682091fa890 100644
--- a/kernel/time/timekeeping.c
+++ b/kernel/time/timekeeping.c
@@ -325,9 +325,10 @@ static int timekeeping_suspend(struct sys_device *dev, pm_message_t state)
325{ 325{
326 unsigned long flags; 326 unsigned long flags;
327 327
328 timekeeping_suspend_time = read_persistent_clock();
329
328 write_seqlock_irqsave(&xtime_lock, flags); 330 write_seqlock_irqsave(&xtime_lock, flags);
329 timekeeping_suspended = 1; 331 timekeeping_suspended = 1;
330 timekeeping_suspend_time = read_persistent_clock();
331 write_sequnlock_irqrestore(&xtime_lock, flags); 332 write_sequnlock_irqrestore(&xtime_lock, flags);
332 333
333 clockevents_notify(CLOCK_EVT_NOTIFY_SUSPEND, NULL); 334 clockevents_notify(CLOCK_EVT_NOTIFY_SUSPEND, NULL);