18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __ASM_GENERIC_TLBFLUSH_H 38c2ecf20Sopenharmony_ci#define __ASM_GENERIC_TLBFLUSH_H 48c2ecf20Sopenharmony_ci/* 58c2ecf20Sopenharmony_ci * This is a dummy tlbflush implementation that can be used on all 68c2ecf20Sopenharmony_ci * nommu architectures. 78c2ecf20Sopenharmony_ci * If you have an MMU, you need to write your own functions. 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci#ifdef CONFIG_MMU 108c2ecf20Sopenharmony_ci#error need to implement an architecture specific asm/tlbflush.h 118c2ecf20Sopenharmony_ci#endif 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#include <linux/bug.h> 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_cistatic inline void flush_tlb_mm(struct mm_struct *mm) 168c2ecf20Sopenharmony_ci{ 178c2ecf20Sopenharmony_ci BUG(); 188c2ecf20Sopenharmony_ci} 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#endif /* __ASM_GENERIC_TLBFLUSH_H */ 22