ARM: tegra: timer: Remove 32k clocksource
authorColin Cross <ccross@android.com>
Sun, 24 Oct 2010 06:22:53 +0000 (23:22 -0700)
committerColin Cross <ccross@android.com>
Tue, 26 Oct 2010 01:46:20 +0000 (18:46 -0700)
commit683a9ff2dfd1a050f1b6db75e1b7955869a2e158
tree3600a319bede06bbf02535ce9e360584210cc8f5
parent73fd3806b4f3f127afca1561c7f3e134776f4686
ARM: tegra: timer: Remove 32k clocksource

The 32k clocksource is never used, because it is always registered
at the same time as the us clocksource, which has a higher rating.
Using the 32k clocksource would cause a race condition with the
tegra_rtc driver on the RTC shadow registers.  Remove the 32k
clocksource, add a replacement tegra_read_rtc_ms function for the
suspend code to track suspend time, and add a comment on
read_persistent_clock that it should never be called while the
tegra_rtc driver is running.  It is currently only called from
timekeeping init, suspend, and resume.

Change-Id: Ic964578e9923b0f0338959f75de1ac170f850337
Signed-off-by: Colin Cross <ccross@android.com>
arch/arm/mach-tegra/power.h
arch/arm/mach-tegra/timer.c