Commit 42db6c2e authored by Sudarshan Rajagopalan's avatar Sudarshan Rajagopalan Committed by Suren Baghdasaryan
Browse files

ANDROID: mm/memory_hotplug: implement {add/remove}_memory_subsection



Memory hotplugging is allowed only for multiples of section sizes.
Section size could be huge (ex. 1GB for arm64 targets) thus limiting
to add/remove lower chunks of memory. This patch allows drivers to add
memory of subsection sizes which are then added to memblock. This does
not create a separate memblock device nodes for newly added subsections
until the whole of the memblock section is added.

Bug: 170460867
Change-Id: I15749b5320340cba4d526e7ddb26a9cd6029c690
[quic_sudaraja: remove nid argument from remove_memory_subsection]
Signed-off-by: default avatarSudarshan Rajagopalan <quic_sudaraja@quicinc.com>
parent d6e26868
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment