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