perf tools: Don't clone maps from parent when synthesizing forks
[linux/fpc-iii.git] / arch / nds32 / include / asm / cacheflush.h
blob8b26198d51bb78b60a28748248e1e50f89be52ab
1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2005-2017 Andes Technology Corporation
4 #ifndef __NDS32_CACHEFLUSH_H__
5 #define __NDS32_CACHEFLUSH_H__
7 #include <linux/mm.h>
9 #define PG_dcache_dirty PG_arch_1
11 void flush_icache_range(unsigned long start, unsigned long end);
12 void flush_icache_page(struct vm_area_struct *vma, struct page *page);
13 #ifdef CONFIG_CPU_CACHE_ALIASING
14 void flush_cache_mm(struct mm_struct *mm);
15 void flush_cache_dup_mm(struct mm_struct *mm);
16 void flush_cache_range(struct vm_area_struct *vma,
17 unsigned long start, unsigned long end);
18 void flush_cache_page(struct vm_area_struct *vma,
19 unsigned long addr, unsigned long pfn);
20 void flush_cache_kmaps(void);
21 void flush_cache_vmap(unsigned long start, unsigned long end);
22 void flush_cache_vunmap(unsigned long start, unsigned long end);
24 #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1
25 void flush_dcache_page(struct page *page);
26 void copy_to_user_page(struct vm_area_struct *vma, struct page *page,
27 unsigned long vaddr, void *dst, void *src, int len);
28 void copy_from_user_page(struct vm_area_struct *vma, struct page *page,
29 unsigned long vaddr, void *dst, void *src, int len);
31 #define ARCH_HAS_FLUSH_ANON_PAGE
32 void flush_anon_page(struct vm_area_struct *vma,
33 struct page *page, unsigned long vaddr);
35 #define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE
36 void flush_kernel_dcache_page(struct page *page);
37 void flush_kernel_vmap_range(void *addr, int size);
38 void invalidate_kernel_vmap_range(void *addr, int size);
39 #define flush_dcache_mmap_lock(mapping) xa_lock_irq(&(mapping)->i_pages)
40 #define flush_dcache_mmap_unlock(mapping) xa_unlock_irq(&(mapping)->i_pages)
42 #else
43 #include <asm-generic/cacheflush.h>
44 #undef flush_icache_range
45 #undef flush_icache_page
46 #undef flush_icache_user_range
47 void flush_icache_user_range(struct vm_area_struct *vma, struct page *page,
48 unsigned long addr, int len);
49 #endif
51 #endif /* __NDS32_CACHEFLUSH_H__ */