arm: rename flush_cache_user_range to flush_icache_user_range
authorChristoph Hellwig <hch@lst.de>
Mon, 8 Jun 2020 04:42:34 +0000 (21:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 8 Jun 2020 18:05:58 +0000 (11:05 -0700)
flush_icache_user_range will be the name for a generic primitive.  Move
the arm name so that arm already has an implementation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Russell King <linux@armlinux.org.uk>
Link: http://lkml.kernel.org/r/20200515143646.3857579-24-hch@lst.de
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm/include/asm/cacheflush.h
arch/arm/kernel/traps.c

index c78e14fcfb5df7eddbbec78e8882e51b524da150..2e24e765e6d3af5d6b7842d45d333d3061bfd1ca 100644 (file)
@@ -258,11 +258,11 @@ extern void flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr
 #define flush_cache_dup_mm(mm) flush_cache_mm(mm)
 
 /*
- * flush_cache_user_range is used when we want to ensure that the
+ * flush_icache_user_range is used when we want to ensure that the
  * Harvard caches are synchronised for the user space address range.
  * This is used for the ARM private sys_cacheflush system call.
  */
-#define flush_cache_user_range(s,e)    __cpuc_coherent_user_range(s,e)
+#define flush_icache_user_range(s,e)   __cpuc_coherent_user_range(s,e)
 
 /*
  * Perform necessary cache operations to ensure that data previously
index 1e70e7227f0ff2283b07becf1ed543b3482bb280..316a7687f8133356979b2f26701daaa00b2c34cb 100644 (file)
@@ -566,7 +566,7 @@ __do_cache_op(unsigned long start, unsigned long end)
                if (fatal_signal_pending(current))
                        return 0;
 
-               ret = flush_cache_user_range(start, start + chunk);
+               ret = flush_icache_user_range(start, start + chunk);
                if (ret)
                        return ret;