1 #ifndef _ASM_X86_VMALLOC_H
2 #define _ASM_X86_VMALLOC_H
4 #include <asm/cpufeature.h>
6 #include <asm/pgtable_areas.h>
8 #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
11 #define arch_vmap_pud_supported arch_vmap_pud_supported
12 static inline bool arch_vmap_pud_supported(pgprot_t prot)
14 return boot_cpu_has(X86_FEATURE_GBPAGES);
18 #define arch_vmap_pmd_supported arch_vmap_pmd_supported
19 static inline bool arch_vmap_pmd_supported(pgprot_t prot)
21 return boot_cpu_has(X86_FEATURE_PSE);
26 #endif /* _ASM_X86_VMALLOC_H */