]> git.hungrycats.org Git - linux/commit
[PATCH] Time precision, adjtime(x) vs. gettimeofday
authorAndrew Morton <akpm@osdl.org>
Wed, 22 Oct 2003 01:19:33 +0000 (18:19 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 22 Oct 2003 01:19:33 +0000 (18:19 -0700)
commit6edc4f5f8bf6e5742b6d5d84b9172146f21fe9c7
tree0083ee1b23622d8139fc4feb1dd1fd94d11068a4
parent83c87843cca7f3768d4647a2bf968d19ab44821a
[PATCH] Time precision, adjtime(x) vs. gettimeofday

From: Stephen Hemminger <shemminger@osdl.org>

The following will prevent adjtime from causing time regression.  It delays
starting the adjtime mechanism for one tick, and keeps gettimeofday inside
the window.

Only fixes i386, but changes to other arch would be similar.

Running a simple clock test program and playing with adjtime demonstrates
that this fixes the problem (and 2.6.0-test6 is broken).  But given the
fragile nature of the timer code, it should go through some more testing
before inclusion.
arch/i386/kernel/time.c
include/linux/timex.h
kernel/time.c
kernel/timer.c