gpu: ion: Allocate the sg_table at creation time rather than dynamically
authorRebecca Schultz Zavin <rebecca@android.com>
Fri, 13 Dec 2013 22:23:43 +0000 (14:23 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:55:37 +0000 (08:55 -0800)
commit29ae6bc7123f2d2d6796ac81c013bbfdd0a0a8d5
tree794f972293d3a7b4b04015a134c6ff77b6bc9c68
parent0f34faf89f7e0755c9dad0f96087a76f0df48d26
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.

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion.c