From: Thomas Gleixner <tglx@linutronix.de>
To: john stultz <johnstul@us.ibm.com>
Cc: Roman Zippel <zippel@linux-m68k.org>,
lkml <linux-kernel@vger.kernel.org>,
George Anzinger <george@mvista.com>,
Ulrich Windl <ulrich.windl@rz.uni-regensburg.de>
Subject: Re: [RFC][PATCH 2/2] Reduced NTP rework (part 2)
Date: Tue, 27 Sep 2005 23:57:57 +0200 [thread overview]
Message-ID: <1127858277.15115.197.camel@tglx.tec.linutronix.de> (raw)
In-Reply-To: <1127852362.8195.215.camel@cog.beaverton.ibm.com>
On Tue, 2005-09-27 at 13:19 -0700, john stultz wrote:
> Yea. I had spent some time implementing your idea about having a
> reference xtime that is only NTP adjusted, then timesource based
> system_time which adjusts the frequency of time timesource when
> system_time and the ntp adjusted xtime drift apart.
>
> The biggest concern was having duplicate timekeeping subsystems in play
> at once.
Which would be wrong IMNSHO.
Please keep the current xtime centric implementation out of your mind.
As I pointed out in the ktimers thread already the correct chain of
processing is
raw timesource
-> freqency adjustment (== CLOCK_MONOTONIC)
-> wall time adjustment (== CLOCK_REALTIME)
This is the way all real world time sources work. Nobody screws on an
atomic clock because the earth rotation is not constant. Why should
Linux be different ? For historic reasons - because it was that way
since v0.95 ?
There is no performance penalty involved doing it this way. It just
changes the order of corrections. The performance critical stuff is a
question of implementation details not of processing order.
> Which isn't all that different from the existing:
> usec = mach_gettimeoffset();
<SNIP>
> sec = xtime.tv_sec;
> usec += xtime.tv_nsec/1000;
>
> Logic seen in the m68k time.c
Same code in most other archs.
tglx
next prev parent reply other threads:[~2005-09-27 21:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-22 19:58 [RFC][PATCH 1/2] Reduced NTP rework (part 1) john stultz
2005-09-22 19:59 ` [RFC][PATCH 2/2] Reduced NTP rework (part 2) john stultz
2005-09-27 16:37 ` Roman Zippel
2005-09-27 20:19 ` john stultz
2005-09-27 21:57 ` Thomas Gleixner [this message]
2005-09-29 18:43 ` Roman Zippel
2005-09-29 19:33 ` john stultz
2005-10-10 12:39 ` Roman Zippel
2005-10-10 20:46 ` john stultz
2005-10-04 7:58 ` Ulrich Windl
2005-10-04 18:30 ` 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=1127858277.15115.197.camel@tglx.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=george@mvista.com \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ulrich.windl@rz.uni-regensburg.de \
--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
all inboxes | Powered by JetHome®