mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user