- Subject: Re: [PATCH V7 1/8] ntp: add ADJ_SETOFFSET mode bit
- From: john stultz <johnstul@xxxxxxxxxx>
- Date: Tue, 21 Dec 2010 14:25:55 -0800
- Cc: Richard Cochran <richardcochran@xxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, linux-api@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, Christoph Lameter <cl@xxxxxxxxx>, David Miller <davem@xxxxxxxxxxxxx>, Krzysztof Halasa <khc@xxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Rodolfo Giometti <giometti@xxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>
- In-reply-to: <AANLkTimJd5pScKTiDxuYd-h+NevYbCusyvUAqmUDXe8h@xxxxxxxxxxxxxx>
- References: <cover.1292512461.git.richard.cochran@xxxxxxxxxx> <880d82bb8120f73973db27e0c48e949014b1a106.1292512461.git.richard.cochran@xxxxxxxxxx> <AANLkTi=yGoFwYt4p_LeHtAQyYgmURspO-p57UdL0sUEZ@xxxxxxxxxxxxxx> <20101221075612.GA13626@xxxxxxxxxxxxxxxxxxxxxx> <AANLkTimJd5pScKTiDxuYd-h+NevYbCusyvUAqmUDXe8h@xxxxxxxxxxxxxx>
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
--
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]