Back to home page

OSCL-LXR

 
 

    


0001 #ifndef _ASM_X86_VMALLOC_H
0002 #define _ASM_X86_VMALLOC_H
0003 
0004 #include <asm/cpufeature.h>
0005 #include <asm/page.h>
0006 #include <asm/pgtable_areas.h>
0007 
0008 #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
0009 
0010 #ifdef CONFIG_X86_64
0011 #define arch_vmap_pud_supported arch_vmap_pud_supported
0012 static inline bool arch_vmap_pud_supported(pgprot_t prot)
0013 {
0014     return boot_cpu_has(X86_FEATURE_GBPAGES);
0015 }
0016 #endif
0017 
0018 #define arch_vmap_pmd_supported arch_vmap_pmd_supported
0019 static inline bool arch_vmap_pmd_supported(pgprot_t prot)
0020 {
0021     return boot_cpu_has(X86_FEATURE_PSE);
0022 }
0023 
0024 #endif
0025 
0026 #endif /* _ASM_X86_VMALLOC_H */