From: Eric Dumazet Date: Wed, 2 May 2007 17:27:11 +0000 (+0200) Subject: [PATCH] x86-64: fix vtime() vsyscall X-Git-Tag: v2.6.22-rc1~1011^2~133 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=272a3713bb9e302e0455c894c41180a482d2c8a3;p=pandora-kernel.git [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 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 --- Reading git-diff-tree failed