2005-11-19 17:17:32 +08:00
|
|
|
#ifndef _ASM_POWERPC_PGALLOC_H
|
|
|
|
#define _ASM_POWERPC_PGALLOC_H
|
2005-12-17 05:43:46 +08:00
|
|
|
#ifdef __KERNEL__
|
2005-11-19 17:17:32 +08:00
|
|
|
|
2008-11-19 20:50:04 +08:00
|
|
|
#include <linux/mm.h>
|
2013-04-28 17:37:32 +08:00
|
|
|
#include <asm-generic/tlb.h>
|
2008-11-19 20:50:04 +08:00
|
|
|
|
2009-07-24 07:15:28 +08:00
|
|
|
#ifdef CONFIG_PPC_BOOK3E
|
|
|
|
extern void tlb_flush_pgtable(struct mmu_gather *tlb, unsigned long address);
|
|
|
|
#else /* CONFIG_PPC_BOOK3E */
|
|
|
|
static inline void tlb_flush_pgtable(struct mmu_gather *tlb,
|
|
|
|
unsigned long address)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
#endif /* !CONFIG_PPC_BOOK3E */
|
|
|
|
|
2007-04-30 14:30:56 +08:00
|
|
|
#ifdef CONFIG_PPC64
|
|
|
|
#include <asm/pgalloc-64.h>
|
2005-11-19 17:17:32 +08:00
|
|
|
#else
|
2007-04-30 14:30:56 +08:00
|
|
|
#include <asm/pgalloc-32.h>
|
2005-11-07 08:06:55 +08:00
|
|
|
#endif
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2005-12-17 05:43:46 +08:00
|
|
|
#endif /* __KERNEL__ */
|
2005-11-19 17:17:32 +08:00
|
|
|
#endif /* _ASM_POWERPC_PGALLOC_H */
|