Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5413
b: refs/heads/master
c: 78fa74a
h: refs/heads/master
i:
  5411: a280f9d
v: v3
  • Loading branch information
George Anzinger authored and Linus Torvalds committed Jul 29, 2005
1 parent b8d9f95 commit 2280bba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 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: a2d76bd8fa29f9b6dbf3ee8f6bc7bdda21bc5ce8
refs/heads/master: 78fa74a23b16bdb0d944272b696915c4e0bb3ee1
17 changes: 3 additions & 14 deletions trunk/kernel/posix-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,21 +896,10 @@ static int adjust_abs_time(struct k_clock *clock, struct timespec *tp,
jiffies_64_f = get_jiffies_64();
}
/*
* Take away now to get delta
* Take away now to get delta and normalize
*/
oc.tv_sec -= now.tv_sec;
oc.tv_nsec -= now.tv_nsec;
/*
* Normalize...
*/
while ((oc.tv_nsec - NSEC_PER_SEC) >= 0) {
oc.tv_nsec -= NSEC_PER_SEC;
oc.tv_sec++;
}
while ((oc.tv_nsec) < 0) {
oc.tv_nsec += NSEC_PER_SEC;
oc.tv_sec--;
}
set_normalized_timespec(&oc, oc.tv_sec - now.tv_sec,
oc.tv_nsec - now.tv_nsec);
}else{
jiffies_64_f = get_jiffies_64();
}
Expand Down

0 comments on commit 2280bba

Please sign in to comment.