From mboxrd@z Thu Jan 1 00:00:00 1970 From: john stultz Subject: Re: [PATCH V7 1/8] ntp: add ADJ_SETOFFSET mode bit Date: Tue, 21 Dec 2010 14:25:55 -0800 Message-ID: <1292970355.2618.76.camel@work-vm> References: <880d82bb8120f73973db27e0c48e949014b1a106.1292512461.git.richard.cochran@omicron.at> <20101221075612.GA13626@riccoc20.at.omicron.at> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Kuwahara,T." <6vvetjsrt26xsrzlh1z0zn4d2grdah-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Cc: Richard Cochran , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Alan Cox , Arnd Bergmann , Christoph Lameter , David Miller , Krzysztof Halasa , Peter Zijlstra , Rodolfo Giometti , Thomas Gleixner List-Id: linux-api@vger.kernel.org On Wed, 2010-12-22 at 05:57 +0900, Kuwahara,T. wrote: > How about this? > > if (txc->modes & ADJ_OFFSET) { > if (txc->constant == INT32_MIN) { > /* step time */ > } else { > /* slew time */ > } > } This looks like magic behavior. Sort of a "knock twice and then say the password" interface. I don't see why that would be better then adding a clear new mode flag? > That said, I'm somehow against the idea of using the adjtimex syscall > for that purpose. Could you expand on why you don't like this? thanks -john