Linux-libre 5.4.39-gnu
[librecmc/linux-libre.git] / arch / powerpc / include / asm / book3s / 32 / tlbflush.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_BOOK3S_32_TLBFLUSH_H
3 #define _ASM_POWERPC_BOOK3S_32_TLBFLUSH_H
4
5 #define MMU_NO_CONTEXT      (0)
6 /*
7  * TLB flushing for "classic" hash-MMU 32-bit CPUs, 6xx, 7xx, 7xxx
8  */
9 extern void flush_tlb_mm(struct mm_struct *mm);
10 extern void flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
11 extern void flush_tlb_page_nohash(struct vm_area_struct *vma, unsigned long addr);
12 extern void flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
13                             unsigned long end);
14 extern void flush_tlb_kernel_range(unsigned long start, unsigned long end);
15 static inline void local_flush_tlb_page(struct vm_area_struct *vma,
16                                         unsigned long vmaddr)
17 {
18         flush_tlb_page(vma, vmaddr);
19 }
20 static inline void local_flush_tlb_mm(struct mm_struct *mm)
21 {
22         flush_tlb_mm(mm);
23 }
24
25 #endif /* _ASM_POWERPC_TLBFLUSH_H */