blob: e9a9f60e596df4c4ef900965498e9f99565915ad [file] [log] [blame]
Paul Mackerras047ea782005-11-19 20:17:32 +11001#ifndef _ASM_POWERPC_PGALLOC_H
2#define _ASM_POWERPC_PGALLOC_H
Arnd Bergmann88ced032005-12-16 22:43:46 +01003#ifdef __KERNEL__
Paul Mackerras047ea782005-11-19 20:17:32 +11004
Kumar Gala0186f472008-11-19 12:50:04 +00005#include <linux/mm.h>
Aneesh Kumar K.Vd614bb02013-04-28 09:37:32 +00006#include <asm-generic/tlb.h>
Kumar Gala0186f472008-11-19 12:50:04 +00007
Benjamin Herrenschmidtc7cc58a12009-07-23 23:15:28 +00008#ifdef CONFIG_PPC_BOOK3E
9extern void tlb_flush_pgtable(struct mmu_gather *tlb, unsigned long address);
10#else /* CONFIG_PPC_BOOK3E */
11static inline void tlb_flush_pgtable(struct mmu_gather *tlb,
12 unsigned long address)
13{
14}
15#endif /* !CONFIG_PPC_BOOK3E */
16
David Gibsonf88df142007-04-30 16:30:56 +100017#ifdef CONFIG_PPC64
18#include <asm/pgalloc-64.h>
Paul Mackerras047ea782005-11-19 20:17:32 +110019#else
David Gibsonf88df142007-04-30 16:30:56 +100020#include <asm/pgalloc-32.h>
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +110021#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070022
Arnd Bergmann88ced032005-12-16 22:43:46 +010023#endif /* __KERNEL__ */
Paul Mackerras047ea782005-11-19 20:17:32 +110024#endif /* _ASM_POWERPC_PGALLOC_H */