1 #ifndef _ASM_X86_VMALLOC_H
2 #define _ASM_X86_VMALLOC_H
3 
4 #include <asm/cpufeature.h>
5 #include <asm/page.h>
6 #include <asm/pgtable_areas.h>
7 
8 #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
9 
10 #ifdef CONFIG_X86_64
11 #define arch_vmap_pud_supported arch_vmap_pud_supported
arch_vmap_pud_supported(pgprot_t prot)12 static inline bool arch_vmap_pud_supported(pgprot_t prot)
13 {
14 	return boot_cpu_has(X86_FEATURE_GBPAGES);
15 }
16 #endif
17 
18 #define arch_vmap_pmd_supported arch_vmap_pmd_supported
arch_vmap_pmd_supported(pgprot_t prot)19 static inline bool arch_vmap_pmd_supported(pgprot_t prot)
20 {
21 	return boot_cpu_has(X86_FEATURE_PSE);
22 }
23 
24 #endif
25 
26 #endif /* _ASM_X86_VMALLOC_H */
27