[SPARC64]: Fix sched_clock() wrapping every ~17 seconds.
commit88ca8e7402aa6899de20ddc8e708831225583f8d
authorDavid S. Miller <davem@davemloft.net>
Sat, 14 Oct 2006 08:33:10 +0000 (14 10:33 +0200)
committerAdrian Bunk <bunk@stusta.de>
Sat, 14 Oct 2006 08:33:10 +0000 (14 10:33 +0200)
tree052cb8902109e1974d9f7832c4a73ae2a371b4ca
parent5360ce880ede2fd89dd4aad73af627879faae122
[SPARC64]: Fix sched_clock() wrapping every ~17 seconds.

Unfortunately, sparc64 doesn't have an easy way to do a "64 X 64 -->
128" bit multiply like PowerPC and IA64 do.  We were doing a
"64 X 64 --> 64" bit multiple which causes overflow very quickly with
a 30-bit quotient shift.

So use a quotientshift count of 10 instead of 30, just like x86 and
ARM do.

This also fixes the wrapping of printk timestamp values every ~17
seconds.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
arch/sparc64/kernel/time.c