treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / powerpc / include / asm / book3s / 32 / tlbflush.h
blob068085b709fb01f0ec070904a8f0587e905ec0ec
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_BOOK3S_32_TLBFLUSH_H
3 #define _ASM_POWERPC_BOOK3S_32_TLBFLUSH_H
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)
18 flush_tlb_page(vma, vmaddr);
20 static inline void local_flush_tlb_mm(struct mm_struct *mm)
22 flush_tlb_mm(mm);
25 #endif /* _ASM_POWERPC_TLBFLUSH_H */