[PATCH] time interpolator: Fix settimeofday inaccuracy
authorChristoph Lameter <clameter@engr.sgi.com>
Thu, 28 Apr 2005 15:13:58 +0000 (08:13 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 28 Apr 2005 15:13:58 +0000 (08:13 -0700)
commit9acf6597c533f3d5c991f730c6a1be296679018e
tree8e567fd0f45d16c4656e7e9a42c7d4749d19ca48
parentbdceb6a0162274934386f19f3ea5a9d44feb0b20
[PATCH] time interpolator: Fix settimeofday inaccuracy

settimeofday will set the time a little bit too early on systems using
time interpolation since it subtracts the current interpolator offset
from the time. This used to be necessary with the code in 2.6.9 and earlier
but the new code resets the time interpolator after setting the time.
Thus the time is set too early and gettimeofday will return a time slightly
before the time specified with settimeofday if invoked immeditely after
settimeofday.

This removes the obsolete subtraction of the time interpolator offset
and makes settimeofday set the time accurately.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/time.c