MIPS: Octeon: Use non-overflowing arithmetic in sched_clock
authorDavid Daney <ddaney@caviumnetworks.com>
Fri, 8 Jan 2010 22:47:36 +0000 (14:47 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 12 Jan 2010 17:19:36 +0000 (18:19 +0100)
commit0e8a1d8262f41d6e8c1d736a408882bbb7a5c0a6
treeb8943db01b333cbd3629555e2de92a8670f39404
parent9b54dc5869c3989077e456c57e51810f0a1bdbcb
MIPS: Octeon: Use non-overflowing arithmetic in sched_clock

With typical mult and shift values, the calculation for Octeon's sched_clock
overflows when using 64-bit arithmetic.  Use 128-bit calculations instead.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/849/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/csrc-octeon.c