]> Pileus Git - ~andy/linux/commit
timekeeping: Fix missing timekeeping_update in suspend path
authorJohn Stultz <john.stultz@linaro.org>
Thu, 12 Dec 2013 03:10:36 +0000 (19:10 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Mon, 23 Dec 2013 19:54:35 +0000 (11:54 -0800)
commit330a1617b0a6268d427aa5922c94d082b1d3e96d
tree12ee60de5410bc9c60c92bf96e4fc4ceaac7d95f
parent04005f6011e3b504cd4d791d9769f7cb9a3b2eae
timekeeping: Fix missing timekeeping_update in suspend path

Since 48cdc135d4840 (Implement a shadow timekeeper), we have to
call timekeeping_update() after any adjustment to the timekeeping
structure in order to make sure that any adjustments to the structure
persist.

In the timekeeping suspend path, we udpate the timekeeper
structure, so we should be sure to update the shadow-timekeeper
before releasing the timekeeping locks. Currently this isn't done.

In most cases, the next time related code to run would be
timekeeping_resume, which does update the shadow-timekeeper, but
in an abundence of caution, this patch adds the call to
timekeeping_update() in the suspend path.

Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: stable <stable@vger.kernel.org> #3.10+
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/timekeeping.c