aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/init.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-05-22 13:18:57 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-07-16 06:06:40 -0400
commit98c672cf1fa2a56f6f43e3f48b1208b83845582c (patch)
tree39ac68eb0d260f090cebabff9a2f2cf8c6bcebd2 /arch/arm/mm/init.c
parentb65b4781fbd5846a82cdac0c32818af1a7452d1f (diff)
ARM: Move platform memory reservations out of generic code
Move the platform specific bootmem memory reservations out of arch/arm/mm/mmu.c into their respective platform files. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/init.c')
-rw-r--r--arch/arm/mm/init.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index 4d2720888c50..1a227eea64bd 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -358,7 +358,7 @@ static void arm_memory_present(struct meminfo *mi)
358} 358}
359#endif 359#endif
360 360
361void __init bootmem_init(void) 361void __init bootmem_init(struct machine_desc *mdesc)
362{ 362{
363 struct meminfo *mi = &meminfo; 363 struct meminfo *mi = &meminfo;
364 unsigned long min, max_low, max_high; 364 unsigned long min, max_low, max_high;
@@ -380,6 +380,9 @@ void __init bootmem_init(void)
380 */ 380 */
381 reserve_special_regions(); 381 reserve_special_regions();
382 382
383 if (mdesc->reserve)
384 mdesc->reserve();
385
383 /* 386 /*
384 * If the initrd is present, reserve its memory. 387 * If the initrd is present, reserve its memory.
385 */ 388 */