- Subject: Re: [PATCH V8 02/13] ntp: add ADJ_SETOFFSET mode bit
- From: Richard Cochran <richardcochran@xxxxxxxxx>
- Date: Mon, 10 Jan 2011 08:17:59 +0100
- Cc: linux-kernel@xxxxxxxxxxxxxxx, linux-api@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, Christoph Lameter <cl@xxxxxxxxx>, David Miller <davem@xxxxxxxxxxxxx>, John Stultz <johnstul@xxxxxxxxxx>, Krzysztof Halasa <khc@xxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Rodolfo Giometti <giometti@xxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>
- In-reply-to: <AANLkTikigXGSACF6R6kfNHyKZ7GFWrUrCMxygvL3fUC6@xxxxxxxxxxxxxx>
- References: <cover.1293820862.git.richard.cochran@xxxxxxxxxx> <fe2bec763bec155381d62721aa9da84aeca2785c.1293820862.git.richard.cochran@xxxxxxxxxx> <AANLkTini2WdT-1v4k9V3JOZYDkA59P+SyscTe8-fK2Wk@xxxxxxxxxxxxxx> <20110108175028.GA22308@xxxxxxxxxxxxxxxxxxxxxx> <AANLkTikigXGSACF6R6kfNHyKZ7GFWrUrCMxygvL3fUC6@xxxxxxxxxxxxxx>
- User-agent: Mutt/1.5.20 (2009-06-14)
On Mon, Jan 10, 2011 at 06:07:26AM +0900, Kuwahara,T. wrote:
> On Sun, Jan 9, 2011 at 2:50 AM, Richard Cochran
> <richardcochran@xxxxxxxxx> wrote:
> > we want to be able to jump the clock arbitrarily.
>
> Another problem remains: How do you deal with leap seconds? I mean,
> given that 1 minute is not always 60 seconds, then what time was it
> XXXXX seconds ago? Maybe some kind of lookup table is necessary, but
> in such case, isn't it a better choice just to use the
> clock_settime/settimeofday syscall?
Well, first of all, the PTP Hardware Clocks for which this whole patch
set was created in the first place will keep their time as TAI. Adding
seconds to such time values is unambiguous.
Secondly, the question you ask applies equally to the existing
interfaces, so it is a mute point with regard to the patch series.
Richard
--
To unsubscribe from this list: send the line "unsubscribe linux-api" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Home]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]