ARM: smp_twd: Reconfigure clockevents after cpufreq change
authorColin Cross <ccross@android.com>
Mon, 16 May 2011 20:16:52 +0000 (13:16 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:34:09 +0000 (21:34 -0800)
commitca98841096fe25582f63f75919eb2eb3c10b81de
tree88d635df5ba582285745cbeabf945d75d43644e9
parent74517cb61ec5b7b5902b36feb0ae2cc60444e8f0
ARM: smp_twd: Reconfigure clockevents after cpufreq change

The localtimer's clock changes with the cpu clock.  After a
cpufreq transition, update the clockevent's frequency and
reprogram the next clock event.

Adds a clock called "smp_twd" that is used to determine the
twd frequency, which can also be used at init time to
avoid calibrating the twd frequency.

Clock changes are based on Rob Herring's work.

Change-Id: I413b5cd07fb2b79bc9fad8b4bf257332d1da7bcd
Signed-off-by: Colin Cross <ccross@android.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: Rob Herring <robherring2@gmail.com>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/kernel/smp_twd.c