• James Bottomley's avatar
    [PARISC] Fix do_gettimeofday() hang · 61c34016
    James Bottomley authored
    Apparently gettimeoffset can return small negative values (usually in
    the 100us range).  If xtime.tv_nsec is accidentally less than this,
    though (a fortunately unlikely event) it triggers the loop forever.
    
    I've added a test and correct adjustment for this case.  It has a
    warning printk in there which I'd like to leave for the time being
    just in case this problem implicates some other part of the kernel.
    Signed-off-by: default avatarJames Bottomley <jejb@parisc-linux.org>
    Signed-off-by: default avatarKyle McMartin <kyle@parisc-linux.org>
    61c34016
time.c 6.14 KB