From 80e32bed614b424c83ab62cd5c59275f044ab02a Mon Sep 17 00:00:00 2001 From: Jianqun Xu Date: Wed, 3 Mar 2021 17:38:26 +0800 Subject: [PATCH] Revert "staging: android: ion: do cache flush for system heap pages" This reverts commit bec15067c2a4c625014737d24b9b7766745bcaf3. Signed-off-by: Jianqun Xu Signed-off-by: Tao Huang Change-Id: Iae860c1009c443886ef5568b43e0af708ec88f59 --- drivers/staging/android/ion/ion_system_heap.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/staging/android/ion/ion_system_heap.c b/drivers/staging/android/ion/ion_system_heap.c index 9fdf4f742186..6f73363c2282 100644 --- a/drivers/staging/android/ion/ion_system_heap.c +++ b/drivers/staging/android/ion/ion_system_heap.c @@ -5,7 +5,6 @@ * Copyright (C) 2011 Google, Inc. */ -#include #include #include #include @@ -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: