]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit29b8726d31f99b0f0b154f041835ec509bc44090
tree8e567fd0f45d16c4656e7e9a42c7d4749d19ca48
parent07733025df2beaba3866c395be0812d0e48a5b88
[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