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>
This commit is contained in:
Russell King
2010-05-22 18:18:57 +01:00
parent b65b4781fb
commit 98c672cf1f
16 changed files with 98 additions and 63 deletions

View File

@ -358,7 +358,7 @@ static void arm_memory_present(struct meminfo *mi)
}
#endif
void __init bootmem_init(void)
void __init bootmem_init(struct machine_desc *mdesc)
{
struct meminfo *mi = &meminfo;
unsigned long min, max_low, max_high;
@ -380,6 +380,9 @@ void __init bootmem_init(void)
*/
reserve_special_regions();
if (mdesc->reserve)
mdesc->reserve();
/*
* If the initrd is present, reserve its memory.
*/