xref: /linux/arch/powerpc/include/asm/nohash/pgalloc.h (revision bd628c1bed7902ec1f24ba0fe70758949146abbe)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_NOHASH_PGALLOC_H
3 #define _ASM_POWERPC_NOHASH_PGALLOC_H
4 
5 #include <linux/mm.h>
6 
7 extern void tlb_remove_table(struct mmu_gather *tlb, void *table);
8 #ifdef CONFIG_PPC64
9 extern void tlb_flush_pgtable(struct mmu_gather *tlb, unsigned long address);
10 #else
11 /* 44x etc which is BOOKE not BOOK3E */
12 static inline void tlb_flush_pgtable(struct mmu_gather *tlb,
13 				     unsigned long address)
14 {
15 
16 }
17 #endif /* !CONFIG_PPC_BOOK3E */
18 
19 #ifdef CONFIG_PPC64
20 #include <asm/nohash/64/pgalloc.h>
21 #else
22 #include <asm/nohash/32/pgalloc.h>
23 #endif
24 #endif /* _ASM_POWERPC_NOHASH_PGALLOC_H */
25