diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-07-01 13:35:07 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-07-27 03:48:25 -0400 |
commit | a9deb137e4eb94d0a4fa0c3535b2c056d9363bef (patch) | |
tree | 27d76af7e2cf402d48df0d0a1a68c8afefbe8928 /arch/arm | |
parent | e07b9e08601b400aee7e076e7b31799d3dd48c1e (diff) |
ARM: Remove unnecessary call to find_limits()
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mm/init.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index c357bfb464ae..599d121c81e7 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, | |||
190 | } | 190 | } |
191 | } | 191 | } |
192 | 192 | ||
193 | static void __init arm_bootmem_free(struct meminfo *mi) | 193 | static void __init arm_bootmem_free(struct meminfo *mi, unsigned long min, |
194 | unsigned long max_low, unsigned long max_high) | ||
194 | { | 195 | { |
195 | unsigned long zone_size[MAX_NR_ZONES], zhole_size[MAX_NR_ZONES]; | 196 | unsigned long zone_size[MAX_NR_ZONES], zhole_size[MAX_NR_ZONES]; |
196 | unsigned long min, max_low, max_high; | ||
197 | int i; | 197 | int i; |
198 | 198 | ||
199 | find_limits(mi, &min, &max_low, &max_high); | ||
200 | |||
201 | /* | 199 | /* |
202 | * initialise the zones. | 200 | * initialise the zones. |
203 | */ | 201 | */ |
@@ -330,7 +328,7 @@ void __init bootmem_init(void) | |||
330 | * the sparse mem_map arrays initialized by sparse_init() | 328 | * the sparse mem_map arrays initialized by sparse_init() |
331 | * for memmap_init_zone(), otherwise all PFNs are invalid. | 329 | * for memmap_init_zone(), otherwise all PFNs are invalid. |
332 | */ | 330 | */ |
333 | arm_bootmem_free(mi); | 331 | arm_bootmem_free(mi, min, max_low, max_high); |
334 | 332 | ||
335 | high_memory = __va((max_low << PAGE_SHIFT) - 1) + 1; | 333 | high_memory = __va((max_low << PAGE_SHIFT) - 1) + 1; |
336 | 334 | ||