gpu: ion: Make ion_free asynchronous
authorRebecca Schultz Zavin <rebecca@android.com>
Wed, 13 Feb 2013 22:48:11 +0000 (14:48 -0800)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:22 +0000 (14:16 -0700)
commit7533724d29d13cde4f8b839ec066c5941a6674c8
treef4e4fd4ab3a1bf0b014ff10e83f3d3d803f2d7c0
parent0c5363f6a0a89952b0d0072ff4e4c3bd042add9a
gpu: ion: Make ion_free asynchronous

Add the ability for a heap to free buffers asynchrounously.  Freed buffers
are placed on a free list and freed from a low priority background thread.
If allocations from a particular heap fail, the free list is drained.  This
patch also enable asynchronous frees from the chunk heap.

Change-Id: Idfdbc8608b6cbd9e27d2e31ea4fd84fea9f69f7d
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
drivers/gpu/ion/ion.c
drivers/gpu/ion/ion_chunk_heap.c
drivers/gpu/ion/ion_priv.h
drivers/gpu/ion/ion_system_heap.c
include/linux/ion.h