Revert "staging: android: ion: do cache flush for system heap pages"

This reverts commit bec15067c2.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iae860c1009c443886ef5568b43e0af708ec88f59
This commit is contained in:
Jianqun Xu
2021-03-03 17:38:26 +08:00
committed by Tao Huang
parent dd09037474
commit 80e32bed61

View File

@@ -5,7 +5,6 @@
* Copyright (C) 2011 Google, Inc.
*/
#include <asm/cacheflush.h>
#include <asm/page.h>
#include <linux/dma-mapping.h>
#include <linux/err.h>
@@ -190,17 +189,6 @@ static int ion_system_heap_allocate(struct ion_heap *heap,
}
buffer->sg_table = table;
if (!(buffer->flags & ION_FLAG_CACHED)) {
for_each_sg(table->sgl, sg, table->orig_nents, i) {
void *start;
page = sg_page(sg);
start = page_address(page);
dmac_flush_range(start, start + sg->length);
}
}
return 0;
free_table: