diff options
author | Laura Abbott <lauraa@codeaurora.org> | 2014-06-27 11:17:27 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-06-29 11:29:34 +0200 |
commit | 6980c3e2514e5ae36b43ec8302f4920d6e3c9434 (patch) | |
tree | cfa27dc7403d59920f2c9492df4008cb05d721f9 /arch | |
parent | ARM: 8085/1: sa1100: collie: add top boot mtd partition (diff) | |
download | linux-6980c3e2514e5ae36b43ec8302f4920d6e3c9434.tar.xz linux-6980c3e2514e5ae36b43ec8302f4920d6e3c9434.zip |
ARM: 8086/1: Set memblock limit for nommu
Commit 1c2f87c (ARM: 8025/1: Get rid of meminfo) changed find_limits
to use memblock_get_current_limit for calculating the max_low pfn.
nommu targets never actually set a limit on memblock though which
means memblock_get_current_limit will just return the default
value. Set the memblock_limit to be the end of DDR to make sure
bounds are calculated correctly.
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mm/nommu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mm/nommu.c b/arch/arm/mm/nommu.c index da1874f9f8cf..a014dfacd5ca 100644 --- a/arch/arm/mm/nommu.c +++ b/arch/arm/mm/nommu.c @@ -300,6 +300,7 @@ void __init sanity_check_meminfo(void) sanity_check_meminfo_mpu(); end = memblock_end_of_DRAM(); high_memory = __va(end - 1) + 1; + memblock_set_current_limit(end); } /* |