Commit 153aff0e authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: Fixed rtas_extended_busy_delay_time() to calculate correct value, from John Rose

From: Anton Blanchard <anton@samba.org>

Fixed rtas_extended_busy_delay_time() to calculate correct value, from John
Rose
parent da985ddd
......@@ -197,9 +197,10 @@ rtas_extended_busy_delay_time(int status)
order = 5; /* bound */
/* Use microseconds for reasonable accuracy */
for (ms = 1000; order > 0; order--)
ms = ms * 10;
return ms / (1000000/HZ); /* round down is fine */
for (ms=1; order > 0; order--)
ms *= 10;
return ms;
}
int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment