Commit 634c33ee authored by Chris Goldsworthy's avatar Chris Goldsworthy Committed by Carlos Llamas
Browse files

ANDROID: mm: add cma pcp list



Add a PCP list for __GFP_CMA allocations so as not to deprive
MIGRATE_MOVABLE allocations quick access to pages on their PCP
lists.

[ACK6.6 port notes]:

    Include fixes from following ACK 6.1 commits.

    commit 718da042 ("ANDROID: retry page allocation from buddy on lock contention")
    commit 7641ff0a ("ANDROID: mm: Avoid merging cma with others")
    commit fca353bd ("ANDROID: mm: freeing MIGRATE_ISOLATE page instantly")

    Also, use a conditional, cma_has_pcplist() to determine if the CMA PCP
    list should be used. By default this is false and no PCP list will be
    created for CMA.

Bug: 330201547
Change-Id: I9831eed113ec9e851b4f651755205ac9cf23b9be
Signed-off-by: default avatarLiam Mark <lmark@codeaurora.org>
Signed-off-by: default avatarChris Goldsworthy <cgoldswo@codeaurora.org>
[isaacm@codeaurora.org: Resolve merge conflicts related to new mm
features]
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@quicinc.com>
Signed-off-by: default avatarSukadev Bhattiprolu <quic_sukadev@quicinc.com>
parent 1c8aebe4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment