xref: /openbmc/linux/arch/riscv/include/asm/tlb.h (revision b4e18b29)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (C) 2012 Regents of the University of California
4  */
5 
6 #ifndef _ASM_RISCV_TLB_H
7 #define _ASM_RISCV_TLB_H
8 
9 struct mmu_gather;
10 
11 static void tlb_flush(struct mmu_gather *tlb);
12 
13 #define tlb_flush tlb_flush
14 #include <asm-generic/tlb.h>
15 
16 static inline void tlb_flush(struct mmu_gather *tlb)
17 {
18 	flush_tlb_mm(tlb->mm);
19 }
20 
21 #endif /* _ASM_RISCV_TLB_H */
22