diff options
author | Alex Frid <afrid@nvidia.com> | 2010-03-16 16:33:37 -0700 |
---|---|---|
committer | Gary King <gking@nvidia.com> | 2010-03-16 18:08:26 -0800 |
commit | 4ebbdfd395bbe8a47bc547550f51724117430002 (patch) | |
tree | 46d1f46815829f652d99ac16cd3b7d134f35513f /arch/arm/mach-tegra/include/mach | |
parent | b11af049255663bfc437e17657192f0127cf0064 (diff) |
tegra RM: Stabilized local timers input frequency.
Utilized local timers prescaler to keep input frequency at calibration
(boot) level while CPU clock is scaled by DVFS. The local timer tick is
lowered to 2.0MHz/1.5MHz on T20/AP20 (was 250MHz/187.5MHz respectively).
Still it is better than 1MHz used as a base for jiffies counting. The
LP2 dead time is not compensated by this commit, nevertheless it should
address bug 660382 (no LP2 during video playback).
Change-Id: I9fd0e1238afa4cf1b44339bf30c37a2a84e97ae9
Reviewed-on: http://git-master/r/865
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/include/mach')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/timex.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/timex.h b/arch/arm/mach-tegra/include/mach/timex.h index b4f0b3f8c740..d59ade633b8c 100644 --- a/arch/arm/mach-tegra/include/mach/timex.h +++ b/arch/arm/mach-tegra/include/mach/timex.h @@ -23,4 +23,12 @@ #define CLOCK_TICK_RATE 1000000 +#if defined(CONFIG_USE_ARM_TWD_PRESCALER) +void local_timer_rescale(unsigned long cpu_freq_khz); +#else +static inline void local_timer_rescale(unsigned long cpu_freq_khz) +{ +} +#endif + #endif |