xref: /linux/arch/powerpc/include/asm/pgalloc.h (revision ca55b2fef3a9373fcfc30f82fd26bc7fccbda732)
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