Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275970
b: refs/heads/master
c: d004e02
h: refs/heads/master
v: v3
  • Loading branch information
Hector Palacios authored and John Stultz committed Nov 17, 2011
1 parent 8ae809b commit 80bd607
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 367177e50189ab0a983b52f3d3f7eb2a1927db71
refs/heads/master: d004e024058a0eaca097513ce62cbcf978913e0a
4 changes: 4 additions & 0 deletions trunk/kernel/time/timekeeping.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ ktime_t ktime_get(void)
secs = xtime.tv_sec + wall_to_monotonic.tv_sec;
nsecs = xtime.tv_nsec + wall_to_monotonic.tv_nsec;
nsecs += timekeeping_get_ns();
/* If arch requires, add in gettimeoffset() */
nsecs += arch_gettimeoffset();

} while (read_seqretry(&xtime_lock, seq));
/*
Expand Down Expand Up @@ -280,6 +282,8 @@ void ktime_get_ts(struct timespec *ts)
*ts = xtime;
tomono = wall_to_monotonic;
nsecs = timekeeping_get_ns();
/* If arch requires, add in gettimeoffset() */
nsecs += arch_gettimeoffset();

} while (read_seqretry(&xtime_lock, seq));

Expand Down

0 comments on commit 80bd607

Please sign in to comment.