xref: /openbmc/linux/arch/powerpc/include/asm/pgalloc.h (revision a2cce7a9)
1 #ifndef _ASM_POWERPC_PGALLOC_H
2 #define _ASM_POWERPC_PGALLOC_H
3 #ifdef __KERNEL__
4 
5 #include <linux/mm.h>
6 
7 #ifdef CONFIG_PPC_BOOK3E
8 extern void tlb_flush_pgtable(struct mmu_gather *tlb, unsigned long address);
9 #else /* CONFIG_PPC_BOOK3E */
10 static inline void tlb_flush_pgtable(struct mmu_gather *tlb,
11 				     unsigned long address)
12 {
13 }
14 #endif /* !CONFIG_PPC_BOOK3E */
15 
16 extern void tlb_remove_table(struct mmu_gather *tlb, void *table);
17 
18 #ifdef CONFIG_PPC64
19 #include <asm/pgalloc-64.h>
20 #else
21 #include <asm/pgalloc-32.h>
22 #endif
23 
24 #endif /* __KERNEL__ */
25 #endif /* _ASM_POWERPC_PGALLOC_H */
26