gpu: ion: Also shrink memory cached in the deferred free list
authorRebecca Schultz Zavin <rebecca@android.com>
Thu, 23 May 2013 20:37:25 +0000 (13:37 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:26 +0000 (14:16 -0700)
commitc1c5c05ce6cc0f1a8cb21406b73de0ba649a2c34
treefccfbf0280fdad128d67c6e97615b41caa7b5b64
parent760017d10ac80defe7fa9ad12aebf36ced5f3119
gpu: ion: Also shrink memory cached in the deferred free list

When the system is low on memory, we want to shrink any cached
system memory ion is holding.  Previously we were shrinking memory
in the page pools, but not in the deferred free list.  This patch
makes it possible to shrink both.  It also moves the shrinker
code into the heaps so they can correctly manage any caches they
might contain.

Change-Id: I177f587f999a5220eddbf7af94745aae736cac75
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
drivers/gpu/ion/ion.c
drivers/gpu/ion/ion_heap.c
drivers/gpu/ion/ion_page_pool.c
drivers/gpu/ion/ion_priv.h
drivers/gpu/ion/ion_system_heap.c