ion: move shrinker out of heaps
Every heap that uses deferred frees is going to need a shrinker to shrink the freelist under memory pressure. Rather than requiring each heap to implement a shrinker, automatically register a shrinker if the deferred free flag is set. The system heap also needs to shrink its page pools, so add a shrink function to the heap ops that will be called after shrinking the freelists. Change-Id: Icda722d683426fadb8ddd1c8e9499264ab682c57 Signed-off-by:Colin Cross <ccross@android.com> Git-commit: f3ae9a8286d63f13715d2082965d6b8849af05a5 Git-repo: http://android.googlesource.com/kernel/common/ [mitchelh@codeaurora.org: context differences due to our addition of cached page pools and some additional heap callbacks] Signed-off-by:
Mitchel Humpherys <mitchelh@codeaurora.org>
Loading
Please register or sign in to comment