1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 25c01b46bSArnd Bergmann #ifndef __ASM_GENERIC_TLBFLUSH_H 35c01b46bSArnd Bergmann #define __ASM_GENERIC_TLBFLUSH_H 45c01b46bSArnd Bergmann /* 55c01b46bSArnd Bergmann * This is a dummy tlbflush implementation that can be used on all 65c01b46bSArnd Bergmann * nommu architectures. 75c01b46bSArnd Bergmann * If you have an MMU, you need to write your own functions. 85c01b46bSArnd Bergmann */ 95c01b46bSArnd Bergmann #ifdef CONFIG_MMU 105c01b46bSArnd Bergmann #error need to implement an architecture specific asm/tlbflush.h 115c01b46bSArnd Bergmann #endif 125c01b46bSArnd Bergmann 13187f1882SPaul Gortmaker #include <linux/bug.h> 14187f1882SPaul Gortmaker flush_tlb_mm(struct mm_struct * mm)155c01b46bSArnd Bergmannstatic inline void flush_tlb_mm(struct mm_struct *mm) 165c01b46bSArnd Bergmann { 175c01b46bSArnd Bergmann BUG(); 185c01b46bSArnd Bergmann } 195c01b46bSArnd Bergmann 205c01b46bSArnd Bergmann 215c01b46bSArnd Bergmann #endif /* __ASM_GENERIC_TLBFLUSH_H */ 22