]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ntp: Correct TAI offset during leap second
authorRichard Cochran <richardcochran@gmail.com>
Thu, 26 Apr 2012 12:11:32 +0000 (14:11 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 25 Jul 2012 03:11:33 +0000 (04:11 +0100)
commit76117661ce2f9ecf7f969a4aeafd1c74802deae7
treeab04c1b17a9cbc66c5433f126be8c1dee9b4d8d2
parenta57ccabee60519dd90051266c00d038055b93878
ntp: Correct TAI offset during leap second

commit dd48d708ff3e917f6d6b6c2b696c3f18c019feed upstream.

When repeating a UTC time value during a leap second (when the UTC
time should be 23:59:60), the TAI timescale should not stop. The kernel
NTP code increments the TAI offset one second too late. This patch fixes
the issue by incrementing the offset during the leap second itself.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
kernel/time/ntp.c