Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1c7e111 authored by Paul Mackerras's avatar Paul Mackerras Committed by Linus Torvalds
Browse files

[PATCH] ppc64: Fix typo in time calculations



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: default avatarPaul Mackerras <paulus@samba.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 024358ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -870,7 +870,7 @@ void div128_by_32( unsigned long dividend_high, unsigned long dividend_low,
	rb = ((ra + b) - (x * divisor)) << 32;
	rb = ((ra + b) - (x * divisor)) << 32;


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


	z = (rc + d)/divisor;
	z = (rc + d)/divisor;