Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53818
b: refs/heads/master
c: 272a371
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and Andi Kleen committed May 2, 2007
1 parent 4be2081 commit 687dee0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bd8559c38ee5be40ce2c57a80fd3c3e978cca267
refs/heads/master: 272a3713bb9e302e0455c894c41180a482d2c8a3
8 changes: 5 additions & 3 deletions trunk/arch/x86_64/kernel/vsyscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,13 @@ int __vsyscall(0) vgettimeofday(struct timeval * tv, struct timezone * tz)
* unlikely */
time_t __vsyscall(1) vtime(time_t *t)
{
time_t result;
if (unlikely(!__vsyscall_gtod_data.sysctl_enabled))
return time_syscall(t);
else if (t)
*t = __vsyscall_gtod_data.wall_time_tv.tv_sec;
return __vsyscall_gtod_data.wall_time_tv.tv_sec;
result = __vsyscall_gtod_data.wall_time_tv.tv_sec;
if (t)
*t = result;
return result;
}

/* Fast way to get current CPU and node.
Expand Down

0 comments on commit 687dee0

Please sign in to comment.