ion: Remove unnecessary dma_sync in ion_page_pool
The MSM ion implementation moved the dma_sync call to
ion_system_heap_allocate()
It was inadvertently added back to
ion_page_pool_alloc_pages() by
commit cb22ca6421
("ion: add snapshot of ion support for MSM")
Change-Id: I61029996e59c754b37f45543c4263a100b427867
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
This commit is contained in:
parent
ad2e8b5496
commit
eee392370f
1 changed files with 3 additions and 8 deletions
|
@ -34,16 +34,11 @@ static void *ion_page_pool_alloc_pages(struct ion_page_pool *pool)
|
|||
if (!page)
|
||||
return NULL;
|
||||
|
||||
ion_page_pool_alloc_set_cache_policy(pool, page);
|
||||
|
||||
/* TODO QCOM - Identify if this sync is needed */
|
||||
ion_pages_sync_for_device(NULL, page, PAGE_SIZE << pool->order,
|
||||
DMA_BIDIRECTIONAL);
|
||||
|
||||
if (pool->gfp_mask & __GFP_ZERO) {
|
||||
if (pool->gfp_mask & __GFP_ZERO)
|
||||
if (msm_ion_heap_high_order_page_zero(page, pool->order))
|
||||
goto error_free_pages;
|
||||
}
|
||||
|
||||
ion_page_pool_alloc_set_cache_policy(pool, page);
|
||||
|
||||
return page;
|
||||
error_free_pages:
|
||||
|
|
Loading…
Add table
Reference in a new issue