Merge tag 'locking-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / sh / include / asm / tlb.h
blob360f713d009b023e6915e6b907db6ca5ecdfcfad
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_SH_TLB_H
3 #define __ASM_SH_TLB_H
5 #ifndef __ASSEMBLY__
6 #include <linux/pagemap.h>
8 #ifdef CONFIG_MMU
9 #include <linux/swap.h>
11 #include <asm-generic/tlb.h>
13 #if defined(CONFIG_CPU_SH4)
14 extern void tlb_wire_entry(struct vm_area_struct *, unsigned long, pte_t);
15 extern void tlb_unwire_entry(void);
16 #else
17 static inline void tlb_wire_entry(struct vm_area_struct *vma ,
18 unsigned long addr, pte_t pte)
20 BUG();
23 static inline void tlb_unwire_entry(void)
25 BUG();
27 #endif
29 #else /* CONFIG_MMU */
31 #include <asm-generic/tlb.h>
33 #endif /* CONFIG_MMU */
34 #endif /* __ASSEMBLY__ */
35 #endif /* __ASM_SH_TLB_H */