bb8266dc4954c95b11b114b80bcc7ce14a5ab403 |
|
08-Jun-2012 |
Rebecca Schultz Zavin <rebecca@android.com> |
gpu: ion: Add ion_page_pool. This patch adds a new utility heaps can use to manage memory. In the past we have found it can be very expensive to manage the caches when allocating memory, but it is imposible to know whether a previous user of a given memory allocation had a cached mapping. This patch adds the ability to store a pool of pages that were previously used uncached so that cache maintenance only need be done when growing this pool. The pool also contains a shrinker so memory from the pool can be recovered in low memory conditions. Change-Id: I686fd7d192060fd32d34ef66471f62b7829006ee Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
|