cacheflush.h (63497b716be30fb268b2358836efb4bb9e615f15) cacheflush.h (203b7b6aad6769a43987deb81c35456de8bb16c7)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ALPHA_CACHEFLUSH_H
3#define _ALPHA_CACHEFLUSH_H
4
5#include <linux/mm.h>
6
7/* Note that the following two definitions are _highly_ dependent
8 on the contexts in which they are used in the kernel. I personally

--- 39 unchanged lines hidden (view full) ---

48}
49#define flush_icache_user_page flush_icache_user_page
50#else /* CONFIG_SMP */
51extern void flush_icache_user_page(struct vm_area_struct *vma,
52 struct page *page, unsigned long addr, int len);
53#define flush_icache_user_page flush_icache_user_page
54#endif /* CONFIG_SMP */
55
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ALPHA_CACHEFLUSH_H
3#define _ALPHA_CACHEFLUSH_H
4
5#include <linux/mm.h>
6
7/* Note that the following two definitions are _highly_ dependent
8 on the contexts in which they are used in the kernel. I personally

--- 39 unchanged lines hidden (view full) ---

48}
49#define flush_icache_user_page flush_icache_user_page
50#else /* CONFIG_SMP */
51extern void flush_icache_user_page(struct vm_area_struct *vma,
52 struct page *page, unsigned long addr, int len);
53#define flush_icache_user_page flush_icache_user_page
54#endif /* CONFIG_SMP */
55
56/* This is used only in __do_fault and do_swap_page. */
57#define flush_icache_page(vma, page) \
58 flush_icache_user_page((vma), (page), 0, 0)
59
60/*
61 * Both implementations of flush_icache_user_page flush the entire
62 * address space, so one call, no matter how many pages.
63 */
64static inline void flush_icache_pages(struct vm_area_struct *vma,
65 struct page *page, unsigned int nr)
66{
67 flush_icache_user_page(vma, page, 0, 0);
68}
56/*
57 * Both implementations of flush_icache_user_page flush the entire
58 * address space, so one call, no matter how many pages.
59 */
60static inline void flush_icache_pages(struct vm_area_struct *vma,
61 struct page *page, unsigned int nr)
62{
63 flush_icache_user_page(vma, page, 0, 0);
64}
65#define flush_icache_pages flush_icache_pages
69
70#include <asm-generic/cacheflush.h>
71
72#endif /* _ALPHA_CACHEFLUSH_H */
66
67#include <asm-generic/cacheflush.h>
68
69#endif /* _ALPHA_CACHEFLUSH_H */