Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm: rename flush_cache_user_range to flush_icache_user_range

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>

authored by

Christoph Hellwig and committed by
Linus Torvalds
fca7f8e6 70cd3444

+3 -3
+2 -2
arch/arm/include/asm/cacheflush.h
··· 258 258 #define flush_cache_dup_mm(mm) flush_cache_mm(mm) 259 259 260 260 /* 261 - * flush_cache_user_range is used when we want to ensure that the 261 + * flush_icache_user_range is used when we want to ensure that the 262 262 * Harvard caches are synchronised for the user space address range. 263 263 * This is used for the ARM private sys_cacheflush system call. 264 264 */ 265 - #define flush_cache_user_range(s,e) __cpuc_coherent_user_range(s,e) 265 + #define flush_icache_user_range(s,e) __cpuc_coherent_user_range(s,e) 266 266 267 267 /* 268 268 * Perform necessary cache operations to ensure that data previously
+1 -1
arch/arm/kernel/traps.c
··· 566 566 if (fatal_signal_pending(current)) 567 567 return 0; 568 568 569 - ret = flush_cache_user_range(start, start + chunk); 569 + ret = flush_icache_user_range(start, start + chunk); 570 570 if (ret) 571 571 return ret; 572 572