Re: [PATCH] ARM: twd: Adjust localtimer frequency withcpufreqnotifiers

From: Colin Cross
Date: Fri May 13 2011 - 17:22:24 EST


On Fri, May 13, 2011 at 3:59 AM, Linus Walleij <linus.walleij@xxxxxxxxxx> wrote:
> 2011/5/13 Thomas Gleixner <tglx@xxxxxxxxxxxxx>:
>
>> Does the following work for you ?
>
> This patch is interesting because it uses calc_mult_shift() and the current
> localtimer driver for TWD (arch/arm/kernel/smp_twd.c) still uses hardcoded
> mult+shift.
>
> So this patch in combination with TGLX add-on in the CPUfreq path would
> eliminate the need of using the prescaler at all, which is a more appealing
> solution to me for one, since it results in less code.
>
> Colin, do you think it will work? Or was there some specific reason to use
> a dynamic prescaler instead of doing things like this?

This sounds much better than the dynamic prescaler. Using the
prescaler causes issues with accuracy and resolution that this avoids.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/