summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2010-03-25 20:32:57 -0700
committerGary King <gking@nvidia.com>2010-03-26 12:37:44 -0800
commit94e55929b1f29c3f7b0f362f9264790471f705ef (patch)
tree9e82ebcdc83d1788da17d8c0e04e6426148c1dfb /arch
parenta9d0afe8b571a90585dadf04f8dcca0c78abc968 (diff)
tegra RM: Fixed CPU PowerGood timer fix.
On platform with no PMU property CPU PowerGood timer was loaded from uninitialized stack variable, instead of default delay - fixed. Change-Id: I5c29199d40e0e39b095c72c0cb64f4ceda51013d Reviewed-on: http://git-master/r/963 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')
-rw-r--r--arch/arm/mach-tegra/power-t2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/power-t2.c b/arch/arm/mach-tegra/power-t2.c
index 08129b744838..db255cd8a1d9 100644
--- a/arch/arm/mach-tegra/power-t2.c
+++ b/arch/arm/mach-tegra/power-t2.c
@@ -307,7 +307,7 @@ void power_lp0_init(void)
g_lp1CpuPwrGoodCnt = HasPmuProperty ?
PmuProperty.CpuPowerGoodUs : 2000; // Use 2ms by default
g_lp1CpuPwrGoodCnt =
- (4096 * PmuProperty.CpuPowerGoodUs + 124999) / 125000;
+ (4096 * g_lp1CpuPwrGoodCnt + 124999) / 125000;
}