diff options
author | Eric Dumazet | 2007-05-02 19:27:11 +0200 |
---|---|---|
committer | Andi Kleen | 2007-05-02 19:27:11 +0200 |
commit | 272a3713bb9e302e0455c894c41180a482d2c8a3 (patch) | |
tree | 2dad036c75c0523db5f5f0f9618f4f3b9f21e28c /arch/i386/kernel/efi.c | |
parent | [PATCH] x86: remove UNEXPECTED_IO_APIC() (diff) | |
download | kernel-qcow2-linux-272a3713bb9e302e0455c894c41180a482d2c8a3.tar.gz kernel-qcow2-linux-272a3713bb9e302e0455c894c41180a482d2c8a3.tar.xz kernel-qcow2-linux-272a3713bb9e302e0455c894c41180a482d2c8a3.zip |
[PATCH] x86-64: fix vtime() vsyscall
There is a tiny probability that the return value from vtime(time_t *t) is
Signed-off-by: Andi Kleen <ak@suse.de>
different than the value stored in *t
Using a temporary variable solves the problem and gives a faster code.
17: 48 85 ff test %rdi,%rdi
1a: 48 8b 05 00 00 00 00 mov 0(%rip),%rax #
__vsyscall_gtod_data.wall_time_tv.tv_sec
21: 74 03 je 26
23: 48 89 07 mov %rax,(%rdi)
26: c9 leaveq
27: c3 retq
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Diffstat (limited to 'arch/i386/kernel/efi.c')
0 files changed, 0 insertions, 0 deletions