diff options
author | Thomas Gleixner <[email protected]> | 2013-04-22 09:37:04 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2013-04-22 20:17:51 +0200 |
commit | 77c675ba18836802f6b73d2d773481d06ebc0f04 (patch) | |
tree | fbf1afe074218e110fb90cdbc108e78a3c89b008 | |
parent | d2054b2c11682495fca41e9d4092e654df63b517 (diff) |
timekeeping: Update tk->cycle_last in resume
commit 7ec98e15aa (timekeeping: Delay update of clock->cycle_last)
forgot to update tk->cycle_last in the resume path. This results in a
stale value versus clock->cycle_last and prevents resume in the worst
case.
Reported-by: Jiri Slaby <[email protected]>
Reported-and-tested-by: Borislav Petkov <[email protected]>
Acked-by: John Stultz <[email protected]>
Cc: Linux-pm mailing list <[email protected]>
Link: http://lkml.kernel.org/r/alpine.LFD.2.02.1304211648150.21884@ionos
Signed-off-by: Thomas Gleixner <[email protected]>
-rw-r--r-- | kernel/time/timekeeping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 675f720a848b..98cd470bbe49 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -951,7 +951,7 @@ static void timekeeping_resume(void) __timekeeping_inject_sleeptime(tk, &ts_delta); /* Re-base the last cycle value */ - clock->cycle_last = cycle_now; + tk->cycle_last = clock->cycle_last = cycle_now; tk->ntp_error = 0; timekeeping_suspended = 0; timekeeping_update(tk, false, true); |