提交 14118c3c 编写于 作者: I Ingo Molnar 提交者: Linus Torvalds

[PATCH] x86_64: fix unlikely profiling & vsyscalls on x86_64

fix unlikely profiling in vsyscalls ...
Signed-off-by: NIngo Molnar <mingo@elte.hu>
Signed-off-by: NAndi Kleen <ak@suse.de>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 4b787e0b
...@@ -107,7 +107,7 @@ static __always_inline long time_syscall(long *t) ...@@ -107,7 +107,7 @@ static __always_inline long time_syscall(long *t)
int __vsyscall(0) vgettimeofday(struct timeval * tv, struct timezone * tz) int __vsyscall(0) vgettimeofday(struct timeval * tv, struct timezone * tz)
{ {
if (unlikely(!__sysctl_vsyscall)) if (!__sysctl_vsyscall)
return gettimeofday(tv,tz); return gettimeofday(tv,tz);
if (tv) if (tv)
do_vgettimeofday(tv); do_vgettimeofday(tv);
...@@ -120,7 +120,7 @@ int __vsyscall(0) vgettimeofday(struct timeval * tv, struct timezone * tz) ...@@ -120,7 +120,7 @@ int __vsyscall(0) vgettimeofday(struct timeval * tv, struct timezone * tz)
* unlikely */ * unlikely */
time_t __vsyscall(1) vtime(time_t *t) time_t __vsyscall(1) vtime(time_t *t)
{ {
if (unlikely(!__sysctl_vsyscall)) if (!__sysctl_vsyscall)
return time_syscall(t); return time_syscall(t);
else if (t) else if (t)
*t = __xtime.tv_sec; *t = __xtime.tv_sec;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册