gpu: ion: Allocate the sg_table at creation time rather than dynamically
authorRebecca Schultz Zavin <rebecca@android.com>
Mon, 7 May 2012 23:06:32 +0000 (16:06 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:40:47 +0000 (13:40 -0700)
commite5fb9082f738378a7177ae9ffa09d39495ff28a0
treeb7136817e331f23e82322c2ff5ef7c7a957691b3
parenta20888fffc1b3aa0e961ce0b036ea8753f033c54
gpu: ion: Allocate the sg_table at creation time rather than dynamically

Rather than calling map_dma on the allocations dynamically, this patch
switches to creating the sg_table at the time the buffer is created.
This is necessary because in future updates the sg_table will be used
for cache maintenance.

Change-Id: I49aac7c6d3a5afc440d18b917ae0e73be5d3f56d
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
drivers/gpu/ion/ion.c