aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/pgtable_64.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/pgtable_64.h')
-rw-r--r--arch/x86/include/asm/pgtable_64.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pgtable_64.h b/arch/x86/include/asm/pgtable_64.h
index f86da20347f2..6dffd4c551cc 100644
--- a/arch/x86/include/asm/pgtable_64.h
+++ b/arch/x86/include/asm/pgtable_64.h
@@ -168,6 +168,19 @@ extern void cleanup_highmap(void);
168#define kc_offset_to_vaddr(o) ((o) | ~__VIRTUAL_MASK) 168#define kc_offset_to_vaddr(o) ((o) | ~__VIRTUAL_MASK)
169 169
170#define __HAVE_ARCH_PTE_SAME 170#define __HAVE_ARCH_PTE_SAME
171
172#ifdef CONFIG_TRANSPARENT_HUGEPAGE
173static inline int pmd_trans_splitting(pmd_t pmd)
174{
175 return pmd_val(pmd) & _PAGE_SPLITTING;
176}
177
178static inline int pmd_trans_huge(pmd_t pmd)
179{
180 return pmd_val(pmd) & _PAGE_PSE;
181}
182#endif /* CONFIG_TRANSPARENT_HUGEPAGE */
183
171#endif /* !__ASSEMBLY__ */ 184#endif /* !__ASSEMBLY__ */
172 185
173#endif /* _ASM_X86_PGTABLE_64_H */ 186#endif /* _ASM_X86_PGTABLE_64_H */