Skip to content

Commit

Permalink
[PATCH] ppc64: Fix typo in time calculations
Browse files Browse the repository at this point in the history
This fixes a typo in the div128_by_32 function used in the timekeeping
calculations on ppc64.  If you look at the code it's quite obvious
that we need (rb + c) rather than (rb + b).  The "b" is clearly just a
typo.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Paul Mackerras authored and Linus Torvalds committed Oct 21, 2005
1 parent 024358e commit a1c7e11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/ppc64/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ void div128_by_32( unsigned long dividend_high, unsigned long dividend_low,
rb = ((ra + b) - (x * divisor)) << 32;

y = (rb + c)/divisor;
rc = ((rb + b) - (y * divisor)) << 32;
rc = ((rb + c) - (y * divisor)) << 32;

z = (rc + d)/divisor;

Expand Down

0 comments on commit a1c7e11

Please sign in to comment.