• L
    Revert "sys_time() speedup" · 20082208
    Linus Torvalds 提交于
    This basically reverts commit 4e44f349,
    while waiting for it to be re-done more completely.  There are cases of
    people mixing "time()" with higher-resolution time sources, and we need
    to take the nanosecond offsets into account.
    
    Ingo has a patch that does that, but it's still under some discussion.
    In the meantime, just revert back to the old simple situation of just
    doing the whole exact timesource calculations.
    
    But rather than using do_gettimeofday(), use the internal nanosecond
    resolution getnstimeofday(), which at least avoids one unnecessary
    conversion (since we really don't care about whether the fractional
    seconds are nanoseconds or microseconds - we'll just throw them away).
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    20082208
time.c 17.1 KB