ARM: smp_twd: Reconfigure clockevents after cpufreq change
authorColin Cross <ccross@android.com>
Mon, 16 May 2011 23:21:54 +0000 (16:21 -0700)
committer黄涛 <huangtao@rock-chips.com>
Wed, 22 Feb 2012 06:09:45 +0000 (14:09 +0800)
commit4a6481fc378a90f42d453ad634f8aca1ce1a4d61
treec18e3816b60c319a9623e40807917a66d2ef9d0b
parent3006cb821a6596d592cf43537a9b1993581a07d5
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.

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