Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209294
b: refs/heads/master
c: c7dcf87
h: refs/heads/master
v: v3
  • Loading branch information
John Stultz authored and Linus Torvalds committed Aug 13, 2010
1 parent d1fe0ba commit 600ab0d
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 2be1f3a73dd02e38e181cf5abacb3d45a6a2d6b8
refs/heads/master: c7dcf87a6881bf796faee83003163eb3de41a309
7 changes: 4 additions & 3 deletions trunk/kernel/time/timekeeping.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,9 +710,10 @@ static cycle_t logarithmic_accumulation(cycle_t offset, int shift)
/* Accumulate raw time */
raw_nsecs = timekeeper.raw_interval << shift;
raw_nsecs += raw_time.tv_nsec;
while (raw_nsecs >= NSEC_PER_SEC) {
raw_nsecs -= NSEC_PER_SEC;
raw_time.tv_sec++;
if (raw_nsecs >= NSEC_PER_SEC) {
u64 raw_secs = raw_nsecs;
raw_nsecs = do_div(raw_secs, NSEC_PER_SEC);
raw_time.tv_sec += raw_secs;
}
raw_time.tv_nsec = raw_nsecs;

Expand Down

0 comments on commit 600ab0d

Please sign in to comment.