From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756276Ab1ALUjs (ORCPT ); Wed, 12 Jan 2011 15:39:48 -0500 Received: from mail-iw0-f174.google.com ([209.85.214.174]:46105 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755865Ab1ALUjp (ORCPT ); Wed, 12 Jan 2011 15:39:45 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=ZleKjxo84DJ4PXG2VdO9IcYe1hmEP70uTPgFTLL9PEf/xcRtLUCFGumzASmXmKXz2X 4T6g5bMytUcKfnMl8Paae1Rbv9HL7PsMdjOzkFsJzq9uKY7K7EyBU/jjkocs8tO9tj5K N48jf7iS4NZhlY2oi9BPT4Jyf2vvgzOoFLZfE= MIME-Version: 1.0 In-Reply-To: <1294779309.3441.66.camel@work-vm> References: <20110108175028.GA22308@riccoc20.at.omicron.at> <1294678145.3068.6.camel@work-vm> <1294693597.3068.12.camel@work-vm> <1294779309.3441.66.camel@work-vm> From: "Kuwahara,T." <6vvetjsrt26xsrzlh1z0zn4d2grdah@gmail.com> Date: Thu, 13 Jan 2011 05:39:04 +0900 Message-ID: Subject: Re: [PATCH V8 02/13] ntp: add ADJ_SETOFFSET mode bit To: john stultz Cc: Richard Cochran , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, netdev@vger.kernel.org, Alan Cox , Arnd Bergmann , Christoph Lameter , David Miller , Krzysztof Halasa , Peter Zijlstra , Rodolfo Giometti , Thomas Gleixner Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 12, 2011 at 5:55 AM, john stultz wrote: > So the kernel handles leap second insertion via a timer. Thus at the end > of 23:59:59, it will inject a leapsecond by setting the time back by one > second (back to 23:59:59) and setting the TIME_OOP flag. > > This timer is an absolute timer, so if someone moves the clock forward > across the 23:59:59 boundary, the adjustment will still be made. > > The patch is not broken, nor useless. It takes into account only one upcoming leap second, but ignores all the others. That's not sufficient for arbitrary adjustments.