Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d801e75f authored by Isaac J. Manjarres's avatar Isaac J. Manjarres Committed by Gerrit - the friendly Code Review server
Browse files

mm, page_alloc: Initialize subsection maps for non-NUMA systems



Subsection maps are only initialized for NUMA systems when
they invoke free_areas_init(). Not initializing the subsection
maps with memory that exists at boot can cause the memmap for
a section to be freed when memory for a subsection within that
section is hot-added and then hot-removed, which is not correct
behavior, as pfn_valid() will always fail for any memory within
the section, since it no longer has a memmap. Thus, initialize
subsection maps for non-NUMA systems as well.

Change-Id: I8a0633f9b8634d9df7bb88bfbb6f4c306a277e0c
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent e4d3a647
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment