Skip to content
Commit 657e12fd authored by Russell King's avatar Russell King
Browse files

ARM: Fix sparsemem with SPARSEMEM_EXTREME enabled



When SPARSEMEM_EXTREME is enabled, memory_present() wants to use bootmem
to allocate data structures.  However, we call memory_present() after
declaring memory to bootmem, but before we've reserved areas.

This leads to sparsemem data structures being overwritten later in the
kernel's initialization (when slab initializes.)

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent c06e004c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment