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)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Jul 2012 09:10:09 +0000 (14:10 +0530)
commit72fd968a507c1eb7e5a033501794a10872374f42
tree99d8364325407806e02b00c8e4fc7f17296116e5
parent242fe3b623f94bc7d62c8dba0271d5d7ae91bbe3
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