diff options
author | john stultz <johnstul@us.ibm.com> | 2007-05-21 14:31:52 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-21 09:56:57 -0700 |
commit | d0aff6e6f4e54f79f9c89d147d371bad384454e9 (patch) | |
tree | c6ee8e8630600029d322569f20602dc586f4fbf5 /fs/partitions/Makefile | |
parent | d8902bfcacde6001e1b11bb06137c3bae3ae52d0 (diff) | |
download | linux-d0aff6e6f4e54f79f9c89d147d371bad384454e9.tar.gz linux-d0aff6e6f4e54f79f9c89d147d371bad384454e9.tar.bz2 linux-d0aff6e6f4e54f79f9c89d147d371bad384454e9.zip |
x86_64: vsyscall time() fix
The vsyscall time() function basically returns the second portion of
xtime directly. This however means that there is about a ticks worth of
time each second where time() will return a second value less then what
gettimeofday() does.
Additionally, this window where vtime() is behind vgettimeofday() grows
when dynticks is enabled, so its probably good to get this in before
dynticks lands.
Big thanks to Sripathi for noticing this issue and creating a test case
to work with!
This patch changes the vtime() implemenation to call vgettimeofday(),
much as syscall time() implementation calls gettimeofday().
2.6.21 stable candidate too
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/partitions/Makefile')
0 files changed, 0 insertions, 0 deletions