Commit eda2e5dc authored by Russell King's avatar Russell King

ARM: LMB: Convert arm_memory_present() to use LMB memory information

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 98864ff5
...@@ -257,17 +257,16 @@ int pfn_valid(unsigned long pfn) ...@@ -257,17 +257,16 @@ int pfn_valid(unsigned long pfn)
} }
EXPORT_SYMBOL(pfn_valid); EXPORT_SYMBOL(pfn_valid);
static void arm_memory_present(struct meminfo *mi) static void arm_memory_present(void)
{ {
} }
#else #else
static void arm_memory_present(struct meminfo *mi) static void arm_memory_present(void)
{ {
int i; int i;
for_each_bank(i, mi) { for (i = 0; i < memblock.memory.cnt; i++)
struct membank *bank = &mi->bank[i]; memory_present(0, memblock_start_pfn(&memblock.memory, i),
memory_present(0, bank_pfn_start(bank), bank_pfn_end(bank)); memblock_end_pfn(&memblock.memory, i));
}
} }
#endif #endif
...@@ -320,7 +319,7 @@ void __init bootmem_init(void) ...@@ -320,7 +319,7 @@ void __init bootmem_init(void)
* Sparsemem tries to allocate bootmem in memory_present(), * Sparsemem tries to allocate bootmem in memory_present(),
* so must be done after the fixed reservations * so must be done after the fixed reservations
*/ */
arm_memory_present(mi); arm_memory_present();
/* /*
* sparse_init() needs the bootmem allocator up and running. * sparse_init() needs the bootmem allocator up and running.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment