ntp: Correct TAI offset during leap second
authorRichard Cochran <richardcochran@gmail.com>
Thu, 26 Apr 2012 12:11:32 +0000 (14:11 +0200)
committerJohn Stultz <john.stultz@linaro.org>
Mon, 21 May 2012 23:16:54 +0000 (16:16 -0700)
commitdd48d708ff3e917f6d6b6c2b696c3f18c019feed
tree97c00e1e8967a3718636ebf05668f61316002da2
parentbdebaf80a02b854381fe212e0dac13c8c8edac57
ntp: Correct TAI offset during leap second

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>
kernel/time/ntp.c