Re: [PATCH 1/1] ntp: advertise correct TAI offset during leap second

From: John Stultz
Date: Fri Apr 27 2012 - 18:23:35 EST


On 04/26/2012 05:11 AM, Richard Cochran wrote:
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@xxxxxxxxx>

This looks good to me. Although, have you actually tested against an ntp client that sets the tai offset to make sure you're not duplicating any ADJ_TAI adjustment it might make?

thanks
-john

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/