]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[PATCH] ppc64: Fix typo in time calculations
authorPaul Mackerras <paulus@samba.org>
Fri, 21 Oct 2005 12:39:36 +0000 (22:39 +1000)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 21 Oct 2005 19:17:43 +0000 (12:17 -0700)
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>
arch/ppc64/kernel/time.c

index 9939c206afa42c776eef326e92094a29e5eaa211..b56c6a324e17f9c2b612ea1bebe0bbb62e2a5c69 100644 (file)
@@ -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;