xref: /OK3568_Linux_fs/kernel/include/asm-generic/tlbflush.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef __ASM_GENERIC_TLBFLUSH_H
3*4882a593Smuzhiyun #define __ASM_GENERIC_TLBFLUSH_H
4*4882a593Smuzhiyun /*
5*4882a593Smuzhiyun  * This is a dummy tlbflush implementation that can be used on all
6*4882a593Smuzhiyun  * nommu architectures.
7*4882a593Smuzhiyun  * If you have an MMU, you need to write your own functions.
8*4882a593Smuzhiyun  */
9*4882a593Smuzhiyun #ifdef CONFIG_MMU
10*4882a593Smuzhiyun #error need to implement an architecture specific asm/tlbflush.h
11*4882a593Smuzhiyun #endif
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun #include <linux/bug.h>
14*4882a593Smuzhiyun 
flush_tlb_mm(struct mm_struct * mm)15*4882a593Smuzhiyun static inline void flush_tlb_mm(struct mm_struct *mm)
16*4882a593Smuzhiyun {
17*4882a593Smuzhiyun 	BUG();
18*4882a593Smuzhiyun }
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun #endif /* __ASM_GENERIC_TLBFLUSH_H */
22