[PATCH] ARM: sched_clock: improve mult/shift accuracy with high frequency clocks

Russell King - ARM Linux linux at arm.linux.org.uk
Tue Jan 11 11:54:10 EST 2011


On Mon, Jan 10, 2011 at 08:53:14AM -0500, Nicolas Pitre wrote:
> On Mon, 10 Jan 2011, Russell King - ARM Linux wrote:
> 
> > With a 32-bit or smaller cyclecounter, as 32-bit x 32-bit can never
> > overflow a 64-bit destination, so if anything zero should be passed in
> > this case.
> 
> That's the alternative suggestion I made as well.

I've just committed a patch which makes it zero.



More information about the linux-arm-kernel mailing list