[PATCH] x86_64: fix unlikely profiling & vsyscalls on x86_64
fix unlikely profiling in vsyscalls ... Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
4b787e0b83
commit
14118c3cdd
1 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ static __always_inline long time_syscall(long *t)
|
|||
|
||||
int __vsyscall(0) vgettimeofday(struct timeval * tv, struct timezone * tz)
|
||||
{
|
||||
if (unlikely(!__sysctl_vsyscall))
|
||||
if (!__sysctl_vsyscall)
|
||||
return gettimeofday(tv,tz);
|
||||
if (tv)
|
||||
do_vgettimeofday(tv);
|
||||
|
@ -120,7 +120,7 @@ int __vsyscall(0) vgettimeofday(struct timeval * tv, struct timezone * tz)
|
|||
* unlikely */
|
||||
time_t __vsyscall(1) vtime(time_t *t)
|
||||
{
|
||||
if (unlikely(!__sysctl_vsyscall))
|
||||
if (!__sysctl_vsyscall)
|
||||
return time_syscall(t);
|
||||
else if (t)
|
||||
*t = __xtime.tv_sec;
|
||||
|
|
Loading…
Reference in a new issue