diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-07-17 11:58:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-07-17 11:58:04 -0400 |
commit | 57a8ec387e1441ea5e1232bc0749fb99a8cba7e7 (patch) | |
tree | b5fb03fc6bc5754de8b5b1f8b0e4f36d67c8315c /include/asm-generic/cacheflush.h | |
parent | 0a8ad0ffa4d80a544f6cbff703bf6394339afcdf (diff) | |
parent | 43e11fa2d1d3b6e35629fa556eb7d571edba2010 (diff) |
Merge branch 'akpm' (patches from Andrew)
Merge more updates from Andrew Morton:
"VM:
- z3fold fixes and enhancements by Henry Burns and Vitaly Wool
- more accurate reclaimed slab caches calculations by Yafang Shao
- fix MAP_UNINITIALIZED UAPI symbol to not depend on config, by
Christoph Hellwig
- !CONFIG_MMU fixes by Christoph Hellwig
- new novmcoredd parameter to omit device dumps from vmcore, by
Kairui Song
- new test_meminit module for testing heap and pagealloc
initialization, by Alexander Potapenko
- ioremap improvements for huge mappings, by Anshuman Khandual
- generalize kprobe page fault handling, by Anshuman Khandual
- device-dax hotplug fixes and improvements, by Pavel Tatashin
- enable synchronous DAX fault on powerpc, by Aneesh Kumar K.V
- add pte_devmap() support for arm64, by Robin Murphy
- unify locked_vm accounting with a helper, by Daniel Jordan
- several misc fixes
core/lib:
- new typeof_member() macro including some users, by Alexey Dobriyan
- make BIT() and GENMASK() available in asm, by Masahiro Yamada
- changed LIST_POISON2 on x86_64 to 0xdead000000000122 for better
code generation, by Alexey Dobriyan
- rbtree code size optimizations, by Michel Lespinasse
- convert struct pid count to refcount_t, by Joel Fernandes
get_maintainer.pl:
- add --no-moderated switch to skip moderated ML's, by Joe Perches
misc:
- ptrace PTRACE_GET_SYSCALL_INFO interface
- coda updates
- gdb scripts, various"
[ Using merge message suggestion from Vlastimil Babka, with some editing - Linus ]
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (100 commits)
fs/select.c: use struct_size() in kmalloc()
mm: add account_locked_vm utility function
arm64: mm: implement pte_devmap support
mm: introduce ARCH_HAS_PTE_DEVMAP
mm: clean up is_device_*_page() definitions
mm/mmap: move common defines to mman-common.h
mm: move MAP_SYNC to asm-generic/mman-common.h
device-dax: "Hotremove" persistent memory that is used like normal RAM
mm/hotplug: make remove_memory() interface usable
device-dax: fix memory and resource leak if hotplug fails
include/linux/lz4.h: fix spelling and copy-paste errors in documentation
ipc/mqueue.c: only perform resource calculation if user valid
include/asm-generic/bug.h: fix "cut here" for WARN_ON for __WARN_TAINT architectures
scripts/gdb: add helpers to find and list devices
scripts/gdb: add lx-genpd-summary command
drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl
kernel/pid.c: convert struct pid count to refcount_t
drivers/rapidio/devices/rio_mport_cdev.c: NUL terminate some strings
select: shift restore_saved_sigmask_unless() into poll_select_copy_remaining()
select: change do_poll() to return -ERESTARTNOHAND rather than -EINTR
...
Diffstat (limited to 'include/asm-generic/cacheflush.h')
-rw-r--r-- | include/asm-generic/cacheflush.h | 74 |
1 files changed, 60 insertions, 14 deletions
diff --git a/include/asm-generic/cacheflush.h b/include/asm-generic/cacheflush.h index 0dd47a6db2cf..a950a22c4890 100644 --- a/include/asm-generic/cacheflush.h +++ b/include/asm-generic/cacheflush.h | |||
@@ -5,24 +5,70 @@ | |||
5 | /* Keep includes the same across arches. */ | 5 | /* Keep includes the same across arches. */ |
6 | #include <linux/mm.h> | 6 | #include <linux/mm.h> |
7 | 7 | ||
8 | #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 0 | ||
9 | |||
8 | /* | 10 | /* |
9 | * The cache doesn't need to be flushed when TLB entries change when | 11 | * The cache doesn't need to be flushed when TLB entries change when |
10 | * the cache is mapped to physical memory, not virtual memory | 12 | * the cache is mapped to physical memory, not virtual memory |
11 | */ | 13 | */ |
12 | #define flush_cache_all() do { } while (0) | 14 | static inline void flush_cache_all(void) |
13 | #define flush_cache_mm(mm) do { } while (0) | 15 | { |
14 | #define flush_cache_dup_mm(mm) do { } while (0) | 16 | } |
15 | #define flush_cache_range(vma, start, end) do { } while (0) | 17 | |
16 | #define flush_cache_page(vma, vmaddr, pfn) do { } while (0) | 18 | static inline void flush_cache_mm(struct mm_struct *mm) |
17 | #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 0 | 19 | { |
18 | #define flush_dcache_page(page) do { } while (0) | 20 | } |
19 | #define flush_dcache_mmap_lock(mapping) do { } while (0) | 21 | |
20 | #define flush_dcache_mmap_unlock(mapping) do { } while (0) | 22 | static inline void flush_cache_dup_mm(struct mm_struct *mm) |
21 | #define flush_icache_range(start, end) do { } while (0) | 23 | { |
22 | #define flush_icache_page(vma,pg) do { } while (0) | 24 | } |
23 | #define flush_icache_user_range(vma,pg,adr,len) do { } while (0) | 25 | |
24 | #define flush_cache_vmap(start, end) do { } while (0) | 26 | static inline void flush_cache_range(struct vm_area_struct *vma, |
25 | #define flush_cache_vunmap(start, end) do { } while (0) | 27 | unsigned long start, |
28 | unsigned long end) | ||
29 | { | ||
30 | } | ||
31 | |||
32 | static inline void flush_cache_page(struct vm_area_struct *vma, | ||
33 | unsigned long vmaddr, | ||
34 | unsigned long pfn) | ||
35 | { | ||
36 | } | ||
37 | |||
38 | static inline void flush_dcache_page(struct page *page) | ||
39 | { | ||
40 | } | ||
41 | |||
42 | static inline void flush_dcache_mmap_lock(struct address_space *mapping) | ||
43 | { | ||
44 | } | ||
45 | |||
46 | static inline void flush_dcache_mmap_unlock(struct address_space *mapping) | ||
47 | { | ||
48 | } | ||
49 | |||
50 | static inline void flush_icache_range(unsigned long start, unsigned long end) | ||
51 | { | ||
52 | } | ||
53 | |||
54 | static inline void flush_icache_page(struct vm_area_struct *vma, | ||
55 | struct page *page) | ||
56 | { | ||
57 | } | ||
58 | |||
59 | static inline void flush_icache_user_range(struct vm_area_struct *vma, | ||
60 | struct page *page, | ||
61 | unsigned long addr, int len) | ||
62 | { | ||
63 | } | ||
64 | |||
65 | static inline void flush_cache_vmap(unsigned long start, unsigned long end) | ||
66 | { | ||
67 | } | ||
68 | |||
69 | static inline void flush_cache_vunmap(unsigned long start, unsigned long end) | ||
70 | { | ||
71 | } | ||
26 | 72 | ||
27 | #define copy_to_user_page(vma, page, vaddr, dst, src, len) \ | 73 | #define copy_to_user_page(vma, page, vaddr, dst, src, len) \ |
28 | do { \ | 74 | do { \ |