summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-07-01 18:35:07 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-07-27 08:48:25 +0100
commita9deb137e4eb94d0a4fa0c3535b2c056d9363bef (patch)
tree27d76af7e2cf402d48df0d0a1a68c8afefbe8928
parente07b9e08601b400aee7e076e7b31799d3dd48c1e (diff)
downloadop-kernel-dev-a9deb137e4eb94d0a4fa0c3535b2c056d9363bef.zip
op-kernel-dev-a9deb137e4eb94d0a4fa0c3535b2c056d9363bef.tar.gz
ARM: Remove unnecessary call to find_limits()
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--arch/arm/mm/init.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index c357bfb..599d121 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -190,14 +190,12 @@ static void __init arm_bootmem_init(struct meminfo *mi,
}
}
-static void __init arm_bootmem_free(struct meminfo *mi)
+static void __init arm_bootmem_free(struct meminfo *mi, unsigned long min,
+ unsigned long max_low, unsigned long max_high)
{
unsigned long zone_size[MAX_NR_ZONES], zhole_size[MAX_NR_ZONES];
- unsigned long min, max_low, max_high;
int i;
- find_limits(mi, &min, &max_low, &max_high);
-
/*
* initialise the zones.
*/
@@ -330,7 +328,7 @@ void __init bootmem_init(void)
* the sparse mem_map arrays initialized by sparse_init()
* for memmap_init_zone(), otherwise all PFNs are invalid.
*/
- arm_bootmem_free(mi);
+ arm_bootmem_free(mi, min, max_low, max_high);
high_memory = __va((max_low << PAGE_SHIFT) - 1) + 1;
OpenPOWER on IntegriCloud