|
|
Subscribe / Log in / New account

NTP4 updates

From:  Roman Zippel <zippel@linux-m68k.org>
To:  johnstul@us.ibm.com, linux-kernel@vger.kernel.org
Subject:  [PATCH 0/10] NTP4 updates
Date:  Thu, 22 Dec 2005 00:19:13 +0100 (CET)

Hi,

The following patches convert the kernel NTP code to NTP4. The first 8 
patches do some functional cleanups, which adds as much precalculations as 
possible to simplify the fast path and which also increase resolution and 
precision of the calculations.

The 9th patch completes the conversion to NTP4, it only converts the 
kernel part, it doesn't change yet the user interface (this would also 
require a patched glibc or ntpd to be useful).

I updated the patches at http://www.xs4all.nl/~zippel/ntp/ (in
patches-kernel) to upgrade the old NTP reference to NTP4, I used this to
verify the behaviour compared to the nanokernel reference. Running
nano.sh should produce a similiar output to the kern.dat input
parameters.

The last patch provides an example of how to implement a continuous
gettimeofday on top of these patches, a more detailed explanation is
included with the patch. There is a small test program at
http://www.xs4all.nl/~zippel/ntp/clocktest.c I used to test the
behaviour (it simulates random ntp adjustments, lost interrupts and
random updates). Compared to the kernel code it maintains a bit more
state and may be a bit easier to understand, but you also have to check
the source to understand the output. :)

bye, Roman


Copyright © 2005, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds