[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220817165126.990420-1-dave@stgolabs.net>
Date: Wed, 17 Aug 2022 09:51:26 -0700
From: Davidlohr Bueso <dave@...olabs.net>
To: chenhuacai@...nel.org
Cc: kernel@...0n.name, linux-kernel@...r.kernel.org, dave@...olabs.net
Subject: [PATCH] loongarch: use asm-generic/cacheflush.h
... instead of redefining the nops.
Signed-off-by: Davidlohr Bueso <dave@...olabs.net>
---
arch/loongarch/include/asm/cacheflush.h | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/arch/loongarch/include/asm/cacheflush.h b/arch/loongarch/include/asm/cacheflush.h
index 670900141b7c..7e38243b79bf 100644
--- a/arch/loongarch/include/asm/cacheflush.h
+++ b/arch/loongarch/include/asm/cacheflush.h
@@ -14,21 +14,6 @@ extern void local_flush_icache_range(unsigned long start, unsigned long end);
#define flush_icache_range local_flush_icache_range
#define flush_icache_user_range local_flush_icache_range
-#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 0
-
-#define flush_cache_all() do { } while (0)
-#define flush_cache_mm(mm) do { } while (0)
-#define flush_cache_dup_mm(mm) do { } while (0)
-#define flush_cache_range(vma, start, end) do { } while (0)
-#define flush_cache_page(vma, vmaddr, pfn) do { } while (0)
-#define flush_cache_vmap(start, end) do { } while (0)
-#define flush_cache_vunmap(start, end) do { } while (0)
-#define flush_icache_page(vma, page) do { } while (0)
-#define flush_icache_user_page(vma, page, addr, len) do { } while (0)
-#define flush_dcache_page(page) do { } while (0)
-#define flush_dcache_mmap_lock(mapping) do { } while (0)
-#define flush_dcache_mmap_unlock(mapping) do { } while (0)
-
#define cache_op(op, addr) \
__asm__ __volatile__( \
" cacop %0, %1 \n" \
--
2.37.2
Powered by blists - more mailing lists