From: john stultz <johnstul@us.ibm.com>
To: Roman Zippel <zippel@linux-m68k.org>
Cc: lkml <linux-kernel@vger.kernel.org>,
George Anzinger <george@mvista.com>,
frank@tuxrocks.com, Anton Blanchard <anton@samba.org>,
benh@kernel.crashing.org, Nishanth Aravamudan <nacc@us.ibm.com>
Subject: Re: [RFC - 0/12] NTP cleanup work (v. B4)
Date: Wed, 20 Jul 2005 09:26:46 -0700 [thread overview]
Message-ID: <1121876812.4259.14.camel@leatherman> (raw)
In-Reply-To: <Pine.LNX.4.61.0507171706490.3728@scrub.home>
On Sun, 2005-07-17 at 20:00 +0200, Roman Zippel wrote:
> On Fri, 15 Jul 2005, john stultz wrote:
>
> > In my attempts to rework the timeofday subsystem, it was suggested I
> > try to avoid mixing cleanups with functional changes. In response to the
> > suggestion I've tried to break out the majority of the NTP cleanups I've
> > been working out of my larger patch and try to feed it in piece meal.
> >
> > The goal of this patch set is to isolate the in kernel NTP state machine
> > in the hope of simplifying the current timeofday code.
>
> I don't really like, where you taken it with ntp_advance(). With these
> patches you put half the ntp state machine in there and execute it at
> every single tick.
Hmm. While second_overflow() has been integrated into ntp_advance, we
are not actually running that code every tick. Instead we keep an
internal interval counter that runs the equivalent second_overflow()
code only once a second. Maybe I'm not understanding specifically which
you're talking about?
> From the previous patches I can guess where you want to go with this, but
> I think it's the wrong direction. The code is currently as is for a
> reason, it's optimized for tick based system and I don't see a reason to
> change this for tick based system.
Well, with the exception of the last two patches, these changes should
just be cleanups. If you notice a change in behavior in the first 10
patches, please let me know.
> If you want to change this for cycle based system, you have to give more
> control to the arch/timer source, which simply call a different set of
> functions and the ntp core system basically just acts as a library to the
> timer source.
> Tick based timer sources continue to update xtime and cycle based system
> will modify the cycle multiplier (e.g. what ppc64 does). Don't force
> everything to use the same set of functions, you'll make it only more
> complex.
In a sense that's what I'm trying to provide, the NTP state machine will
provide the adjustment that you can either apply completely at tick time
or continually w/ a timesource.
I really don't think the NTP changes I've mailed is very complex.
Please, be specific and point to something you think is an issue and
I'll do my best to fix it.
> Larger ntp state updates don't have to be done more than once a
> second and leave the details of how the clock is updated to the clock
> source (just provide some library functions it can use).
Again, I'm not be doing larger NTP state machine changes every tick.
Thanks again for the feedback, I really do appreciate the review.
thanks
-john
next prev parent reply other threads:[~2005-07-20 16:27 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-16 2:55 [RFC - 0/12] NTP cleanup work (v. B4) john stultz
2005-07-16 2:57 ` [RFC][PATCH - 1/12] NTP cleanup: Move NTP code into ntp.c john stultz
2005-07-16 2:57 ` [RFC][PATCH - 2/12] NTP cleanup: Move arches to new ntp interfaces john stultz
2005-07-16 2:58 ` [RFC][PATCH - 3/12] NTP cleanup: Remove unused NTP PPS code john stultz
2005-07-16 2:59 ` [RFC][PATCH - 4/12] NTP cleanup: Breakup ntp_adjtimex() john stultz
2005-07-16 3:00 ` [RFC][PATCH - 5/12] NTP cleanup: Break out leapsecond processing john stultz
2005-07-16 3:02 ` [RFC][PATCH - 6/12] NTP cleanup: Clean up ntp_adjtimex() arguement checking john stultz
2005-07-16 3:04 ` [RFC][PATCH - 7/12] NTP cleanup: Cleanup signed shifting logic john stultz
2005-07-16 3:05 ` [RFC][PATCH - 8/12] NTP cleanup: Integrate second_overflow() logic john stultz
2005-07-16 3:06 ` [RFC][PATCH - 9/12] NTP cleanup: Improve NTP variable names john stultz
2005-07-16 3:06 ` [RFC][PATCH - 10/12] NTP cleanup: Use ntp_lock instead of xtime_lock john stultz
2005-07-16 3:07 ` [RFC][PATCH - 11/12] NTP cleanup: Introduce PPM adjustment variables john stultz
2005-07-16 3:09 ` [RFC][PATCH - 12/12] NTP cleanup: use ppm instead of unit adj returned by ntp_advance john stultz
2005-07-18 11:42 ` [RFC][PATCH - 1/12] NTP cleanup: Move NTP code into ntp.c Pavel Machek
2005-07-20 20:44 ` john stultz
2005-07-17 18:00 ` [RFC - 0/12] NTP cleanup work (v. B4) Roman Zippel
2005-07-20 16:26 ` john stultz [this message]
2005-07-21 10:39 ` Roman Zippel
2005-07-26 1:03 ` john stultz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1121876812.4259.14.camel@leatherman \
--to=johnstul@us.ibm.com \
--cc=anton@samba.org \
--cc=benh@kernel.crashing.org \
--cc=frank@tuxrocks.com \
--cc=george@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nacc@us.ibm.com \
--cc=zippel@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox