[PATCH] nomadik: prevent sched_clock() wraparound
Russell King - ARM Linux
linux at arm.linux.org.uk
Wed Nov 17 03:38:42 EST 2010
On Wed, Nov 17, 2010 at 09:34:56AM +0100, Linus Walleij wrote:
> And the Tegra code in mach-tegra/timer.c:
>
> static cycle_t tegra_clocksource_read(struct clocksource *cs)
> {
> return cnt32_to_63(timer_readl(TIMERUS_CNTR_1US));
> }
>
> This just won't fly for long either, the mult for the clocksource is
> usually something in the order of 20.
I thought John/Thomas said that using cnt32_to_63 in there wasn't a good
idea - sounds like it needs to be killed. Colin?
More information about the linux-arm-kernel
mailing list