diff options
author | Alex Frid <afrid@nvidia.com> | 2010-07-23 19:35:45 -0700 |
---|---|---|
committer | Gary King <gking@nvidia.com> | 2010-07-29 10:26:36 -0700 |
commit | 960ba08a655d992addb3d20f40cdfdd8655e7c8b (patch) | |
tree | e065df14176da8859aecbdca2f57ab6834570761 /arch/arm/mach-tegra/cpufreq.c | |
parent | 4de8cf2d4e7f3ab4dcb7eab54ddf55c6021bc6a0 (diff) |
[ARM/tegra] timing: Preset CPU1 lpj.
Preset CPU1 lpj to skip re-calibration each time CPU1 is hot-plugged.
This is justified, since CPU1 is always hot-plugged at max/boot frequency.
Also h/w us timer is used for kernel delays, so CPU1 lpj is irrelevant,
anyway.
Change-Id: I3ffb8ad67c6f8f8fe5b59fe4eaba3b1a0ae40686
Reviewed-on: http://git-master/r/4368
Reviewed-by: John David Moser <jmoser@nvidia.com>
Tested-by: John David Moser <jmoser@nvidia.com>
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
Tested-by: Narendra Damahe <ndamahe@nvidia.com>
Reviewed-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/cpufreq.c')
-rw-r--r-- | arch/arm/mach-tegra/cpufreq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/cpufreq.c b/arch/arm/mach-tegra/cpufreq.c index 3bae045f9a46..22f1634077c4 100644 --- a/arch/arm/mach-tegra/cpufreq.c +++ b/arch/arm/mach-tegra/cpufreq.c @@ -35,6 +35,7 @@ #include <linux/smp_lock.h> #include <linux/suspend.h> #include <linux/reboot.h> +#include <linux/delay.h> #include <asm/system.h> #include <asm/smp_twd.h> @@ -136,6 +137,7 @@ static int tegra_cpufreq_dfsd(void *arg) BUG_ON(!clk_cpu); + preset_lpj = loops_per_jiffy; rate = clk_get_rate(clk_cpu); last_rate = rate; |