Skip to content
  • Christoph Lameter's avatar
    [PATCH] time interpolator: Fix settimeofday inaccuracy · 9acf6597
    Christoph Lameter authored
    
    
    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: default avatarChristoph Lameter <clameter@sgi.com>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    9acf6597