Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b4056b9 authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

gpu: ion: system_heap: remove superfluous cache flush



When we allocate pages from the page pool we flush the cache after
zero'ing the buffer. We then flush the cache again (residual from
pre-page pool days). Remove the redundant second flush.

Change-Id: I48df2777b870c33a532cf19d46660bed62d2ef59
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent cec9c695
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -47,7 +47,6 @@ static void *ion_page_pool_alloc_pages(struct ion_page_pool *pool)
	sg_init_table(&sg, 1);
	sg_set_page(&sg, page, PAGE_SIZE << pool->order, 0);
	sg_dma_address(&sg) = sg_phys(&sg);
	dma_sync_sg_for_device(NULL, &sg, 1, DMA_BIDIRECTIONAL);

	return page;
error_free_pages: