vmalloc.h 560 B

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