]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commit
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>
Wed, 20 Feb 2013 01:54:24 +0000 (17:54 -0800)
commitf582ac7bdff58828e9ef520e2a5d05400760f66e
tree843d94fd8a045061813be0f3640c59c732f37d7d
parent05c59ff371d05dffd8c2f11966ec36c502f0fb7d
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