• Andrew Morton's avatar
    [PATCH] Time precision, adjtime(x) vs. gettimeofday · 6edc4f5f
    Andrew Morton authored
    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.
    6edc4f5f
time.c 9.12 KB