]> www.infradead.org Git - users/jedix/linux-maple.git/commit
time: Avoid making adjustments if we haven't accumulated anything
authorJohn Stultz <john.stultz@linaro.org>
Wed, 12 Sep 2012 00:49:52 +0000 (20:49 -0400)
committerGuangyu Sun <guangyu.sun@oracle.com>
Mon, 8 Oct 2012 17:01:01 +0000 (10:01 -0700)
commit1e0df99139f48fda25a9187d9e31706e40d942fd
tree9ff1aee9f12ff110fd2294e2bbe98361bf9c6a4a
parenta39b266d052993e27d1685848c973ea132876c37
time: Avoid making adjustments if we haven't accumulated anything

commit bf2ac312195155511a0f79325515cbb61929898a upstream

If update_wall_time() is called and the current offset isn't large
enough to accumulate, avoid re-calling timekeeping_adjust which may
change the clock freq and can cause 1ns inconsistencies with
CLOCK_REALTIME_COARSE/CLOCK_MONOTONIC_COARSE.

Signed-off-by: John Stultz <john.stultz@linaro.org>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Link: http://lkml.kernel.org/r/1345595449-34965-5-git-send-email-john.stultz@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
kernel/time/timekeeping.c