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)
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>

No differences found