summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Poudrier <rapoudrier@nvidia.com>2012-03-01 19:56:35 -0800
committerVarun Colbert <vcolbert@nvidia.com>2012-03-13 15:31:19 -0700
commit14eb9f7cc88e4ce3161ea26acd44ece30a681c0d (patch)
tree01c2f8750e4cc9ea244442afd46c0fe4f7ee93ec
parent86ce551a4633f387fc401c89f6bb97059d3ad75b (diff)
ARM: tegra: pm: only identity map lowmem area
Bug 941380 Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com> Reviewed-on: http://git-master/r/87095 (cherry picked from commit 72b72afb18f852ee0b352b0644bf30b4afeaa055) Change-Id: I7e10b6180044a6fb58b2fee835991812c193d9b1 Reviewed-on: http://git-master/r/89564 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com> Tested-by: Raymond Poudrier <rapoudrier@nvidia.com> Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/pm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/pm.c b/arch/arm/mach-tegra/pm.c
index ee5517e5e21d..ffda657ecad9 100644
--- a/arch/arm/mach-tegra/pm.c
+++ b/arch/arm/mach-tegra/pm.c
@@ -249,8 +249,9 @@ static __init int create_suspend_pgtable(void)
if (!tegra_pgd)
return -ENOMEM;
+ /* Only identity-map size of lowmem (high_memory - PAGE_OFFSET) */
identity_mapping_add(tegra_pgd, PLAT_PHYS_OFFSET,
- PLAT_PHYS_OFFSET + memblock_phys_mem_size());
+ PLAT_PHYS_OFFSET + (unsigned long)high_memory - PAGE_OFFSET);
identity_mapping_add(tegra_pgd, IO_IRAM_PHYS,
IO_IRAM_PHYS + SECTION_SIZE);