Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11315
b: refs/heads/master
c: 4b8f573
h: refs/heads/master
i:
  11313: 4d832d1
  11311: ff3e0f9
v: v3
  • Loading branch information
YOSHIFUJI Hideaki authored and Linus Torvalds committed Oct 30, 2005
1 parent f6c2b55 commit 6343f85
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 930fc45a49ddebe7555cc5c837d82b9c27e65ff4
refs/heads/master: 4b8f573b5db02a3017afbba49026a6aef480174f
9 changes: 9 additions & 0 deletions trunk/kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,15 @@ static void second_overflow(void)
else
time_adj += (time_adj >> 2) + (time_adj >> 5);
#endif
#if HZ == 250
/* Compensate for (HZ==250) != (1 << SHIFT_HZ).
* Add 1.5625% and 0.78125% to get 255.85938; => only 0.05% error (p. 14)
*/
if (time_adj < 0)
time_adj -= (-time_adj >> 6) + (-time_adj >> 7);
else
time_adj += (time_adj >> 6) + (time_adj >> 7);
#endif
#if HZ == 1000
/* Compensate for (HZ==1000) != (1 << SHIFT_HZ).
* Add 1.5625% and 0.78125% to get 1023.4375; => only 0.05% error (p. 14)
Expand Down

0 comments on commit 6343f85

Please sign in to comment.