From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753617AbbFLHhU (ORCPT ); Fri, 12 Jun 2015 03:37:20 -0400 Received: from mail-wg0-f54.google.com ([74.125.82.54]:36069 "EHLO mail-wg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752759AbbFLHhR (ORCPT ); Fri, 12 Jun 2015 03:37:17 -0400 Date: Fri, 12 Jun 2015 09:37:11 +0200 From: Richard Cochran To: John Stultz Cc: linux-kernel@vger.kernel.org, Prarit Bhargava , Daniel Bristot de Oliveira , Jan Kara , Jiri Bohac , Thomas Gleixner , Ingo Molnar Subject: Re: [PATCH 4/5] ntp: Do leapsecond adjustment in adjtimex read path Message-ID: <20150612073711.GA1844@localhost.localdomain> References: <1434063297-28657-1-git-send-email-john.stultz@linaro.org> <1434063297-28657-5-git-send-email-john.stultz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1434063297-28657-5-git-send-email-john.stultz@linaro.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org John, The description is just awful. On Thu, Jun 11, 2015 at 03:54:56PM -0700, John Stultz wrote: > Since the leapsecond is applied at tick-time, this > means there is a small window of time at the start > of a leap-second where we cross into the next second > before applying the leap. First you say the leap second is applied at the tick, ... > This patch modified adjtimex so that the leap-second > is applied on the second edge. Providing more correct > leapsecond behavior. and then you say it is applied on the edge of the second. Instead, this second paragraph should say: This patch modifies adjtimex to apply the leap second correction to the returned time value. Callers of adjtimex will observe the leap second occuring exactly on the edge of the second. > This does make it so that adjtimex()'s returned time > values can be inconsistent with time values read from > gettimeofday() or clock_gettime(CLOCK_REALTIME,...) > for a brief period of one tick at the leapsecond. How about this instead? As as a result, adjtimex()'s returned time values will be inconsistent with time values read from gettimeofday() or clock_gettime(CLOCK_REALTIME,...) for a brief period of one tick at the leapsecond. Thanks, Richard