aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/pgtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/pgtable.h')
-rw-r--r--arch/x86/include/asm/pgtable.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h
index c48ba055f693..18601c86fab1 100644
--- a/arch/x86/include/asm/pgtable.h
+++ b/arch/x86/include/asm/pgtable.h
@@ -160,6 +160,11 @@ static inline int pmd_trans_huge(pmd_t pmd)
160{ 160{
161 return pmd_val(pmd) & _PAGE_PSE; 161 return pmd_val(pmd) & _PAGE_PSE;
162} 162}
163
164static inline int has_transparent_hugepage(void)
165{
166 return cpu_has_pse;
167}
163#endif /* CONFIG_TRANSPARENT_HUGEPAGE */ 168#endif /* CONFIG_TRANSPARENT_HUGEPAGE */
164 169
165static inline pte_t pte_set_flags(pte_t pte, pteval_t set) 170static inline pte_t pte_set_flags(pte_t pte, pteval_t set)