]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "sys_time() speedup"
authorLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 20 Jul 2007 20:28:54 +0000 (13:28 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 20 Jul 2007 20:32:46 +0000 (13:32 -0700)
commit0a3c477e91139c7118fee87fd39d7630b9b3be12
tree9c5fb8b569f4e78c2dbe31cbc83cfed5c713ca68
parent29fd2322253c62b40f3f699eb6fbc4765aaf0c34
Revert "sys_time() speedup"

This basically reverts commit eecbc5d93b86c1c38eb56749af79e1f0359b19d8,
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: Linus Torvalds <torvalds@linux-foundation.org>
kernel/time.c