timekeeping/ntp: Don't align NTP frequency adjustments to ticks
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 9 Mar 2018 18:42:47 +0000 (10:42 -0800)
committerIngo Molnar <mingo@kernel.org>
Sat, 10 Mar 2018 08:12:41 +0000 (09:12 +0100)
commitc2cda2a5bda9f1369c9d1ab54a20571c13cf2743
treec15708e16f272c90ec5a2632b4c9c47b11fcdf8f
parent27263e8dc0f6fe27540a843611ec14a000591c41
timekeeping/ntp: Don't align NTP frequency adjustments to ticks

When the timekeeping multiplier is changed, the NTP error is updated to
correct the clock for the delay between the tick and the update of the
clock. This error is corrected in later updates and the clock appears as
if the frequency was changed exactly on the tick.

Remove this correction to keep the point where the frequency is
effectively changed at the time of the update. This removes a major
source of the NTP error.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Stephen Boyd <stephen.boyd@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1520620971-9567-2-git-send-email-john.stultz@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/time/timekeeping.c