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

Skip to content
Commit 073c8793 authored by Olav Haugan's avatar Olav Haugan
Browse files

staging: android: Reduce allocation time from system heap



If we are under heavy memory pressure the shrinker might be running on
the system heap. This causes contention with the page pool lock when we
try to allocate from system heap. To ensure that allocations aren't
slowed down by having to wait for the page pool mutex we will just try
to get the mutex. If we are unsuccessful we just bypass the pool
altogether.

Change-Id: I3e92e3081355a8528438e41e74b716a2b49a3891
Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
parent 86cefc5f
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