linux-mips
[Top] [All Lists]

Re: [PATCH] MIPS: Octeon: Use non-overflowing arithmetic in sched_clock

To: David Daney <ddaney@caviumnetworks.com>
Subject: Re: [PATCH] MIPS: Octeon: Use non-overflowing arithmetic in sched_clock
From: Ralf Baechle <ralf@linux-mips.org>
Date: Mon, 11 Jan 2010 11:20:23 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <1262990856-8300-1-git-send-email-ddaney@caviumnetworks.com>
References: <1262990856-8300-1-git-send-email-ddaney@caviumnetworks.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.20 (2009-08-17)
On Fri, Jan 08, 2010 at 02:47:36PM -0800, David Daney wrote:

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

Applied though my first thought whenever I see extended precission math
is gross - maybe we're going to find a better solution.  Hopefully!

  Ralf

<Prev in Thread] Current Thread [Next in Thread>