diff options
| author | Rebecca Schultz Zavin <rebecca@android.com> | 2013-01-09 11:26:37 -0800 |
|---|---|---|
| committer | Arve Hjønnevåg <arve@android.com> | 2013-07-01 14:16:20 -0700 |
| commit | d5c90f9fa558245c8ab5719ae9e2bb201d53c370 (patch) | |
| tree | 7bb8d303cf96bca8ba03178f849a8f75dd28af0a /drivers/gpu/ion/ion_chunk_heap.c | |
| parent | de096a7b3f3aa0efd65593dd8c0f0f6153776416 (diff) | |
| download | olio-linux-3.10-d5c90f9fa558245c8ab5719ae9e2bb201d53c370.tar.xz olio-linux-3.10-d5c90f9fa558245c8ab5719ae9e2bb201d53c370.zip | |
gpu: ion: Refactor the code to zero buffers
Refactor the code in the system heap used to map and zero the buffers
into a seperate utility so it can be called from other heaps. Use it from
the chunk heap.
Change-Id: I706341ae42b80bc4aae8a8614b4f73435bbf05d9
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Diffstat (limited to 'drivers/gpu/ion/ion_chunk_heap.c')
| -rw-r--r-- | drivers/gpu/ion/ion_chunk_heap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/ion/ion_chunk_heap.c b/drivers/gpu/ion/ion_chunk_heap.c index 01381827f58..f65274d3306 100644 --- a/drivers/gpu/ion/ion_chunk_heap.c +++ b/drivers/gpu/ion/ion_chunk_heap.c @@ -101,6 +101,8 @@ static void ion_chunk_heap_free(struct ion_buffer *buffer) struct scatterlist *sg; int i; + ion_heap_buffer_zero(buffer); + for_each_sg(table->sgl, sg, table->nents, i) { __dma_page_cpu_to_dev(sg_page(sg), 0, sg_dma_len(sg), DMA_BIDIRECTIONAL); |