The function currently known as flush_icache_user_range only operates on a single page. Rename it to flush_icache_user_page as we'll need the name flush_icache_user_range for something else soon. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Richard Henderson <rth@twiddle.net> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Matt Turner <mattst88@gmail.com> Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Greentime Hu <green.hu@gmail.com> Cc: Vincent Chen <deanbo422@gmail.com> Cc: Jonas Bonn <jonas@southpole.se> Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> Cc: Stafford Horne <shorne@gmail.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Paul Walmsley <paul.walmsley@sifive.com> Cc: Palmer Dabbelt <palmer@sifive.com> Cc: Albert Ou <aou@eecs.berkeley.edu> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Arnaldo Carvalho de Melo <acme@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/r/20200515143646.3857579-20-hch@lst.de Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
		
			
				
	
	
		
			55 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0 */
 | |
| // Copyright (C) 2005-2017 Andes Technology Corporation
 | |
| 
 | |
| #ifndef __NDS32_CACHEFLUSH_H__
 | |
| #define __NDS32_CACHEFLUSH_H__
 | |
| 
 | |
| #include <linux/mm.h>
 | |
| 
 | |
| #define PG_dcache_dirty PG_arch_1
 | |
| 
 | |
| void flush_icache_range(unsigned long start, unsigned long end);
 | |
| #define flush_icache_range flush_icache_range
 | |
| 
 | |
| void flush_icache_page(struct vm_area_struct *vma, struct page *page);
 | |
| #define flush_icache_page flush_icache_page
 | |
| 
 | |
| #ifdef CONFIG_CPU_CACHE_ALIASING
 | |
| void flush_cache_mm(struct mm_struct *mm);
 | |
| void flush_cache_dup_mm(struct mm_struct *mm);
 | |
| void flush_cache_range(struct vm_area_struct *vma,
 | |
| 		       unsigned long start, unsigned long end);
 | |
| void flush_cache_page(struct vm_area_struct *vma,
 | |
| 		      unsigned long addr, unsigned long pfn);
 | |
| void flush_cache_kmaps(void);
 | |
| void flush_cache_vmap(unsigned long start, unsigned long end);
 | |
| void flush_cache_vunmap(unsigned long start, unsigned long end);
 | |
| 
 | |
| #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1
 | |
| void flush_dcache_page(struct page *page);
 | |
| void copy_to_user_page(struct vm_area_struct *vma, struct page *page,
 | |
| 		       unsigned long vaddr, void *dst, void *src, int len);
 | |
| void copy_from_user_page(struct vm_area_struct *vma, struct page *page,
 | |
| 			 unsigned long vaddr, void *dst, void *src, int len);
 | |
| 
 | |
| #define ARCH_HAS_FLUSH_ANON_PAGE
 | |
| void flush_anon_page(struct vm_area_struct *vma,
 | |
| 		     struct page *page, unsigned long vaddr);
 | |
| 
 | |
| #define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE
 | |
| void flush_kernel_dcache_page(struct page *page);
 | |
| void flush_kernel_vmap_range(void *addr, int size);
 | |
| void invalidate_kernel_vmap_range(void *addr, int size);
 | |
| #define flush_dcache_mmap_lock(mapping)   xa_lock_irq(&(mapping)->i_pages)
 | |
| #define flush_dcache_mmap_unlock(mapping) xa_unlock_irq(&(mapping)->i_pages)
 | |
| 
 | |
| #else
 | |
| void flush_icache_user_page(struct vm_area_struct *vma, struct page *page,
 | |
| 	                     unsigned long addr, int len);
 | |
| #define flush_icache_user_page flush_icache_user_page
 | |
| 
 | |
| #include <asm-generic/cacheflush.h>
 | |
| #endif
 | |
| 
 | |
| #endif /* __NDS32_CACHEFLUSH_H__ */
 |