vmalloc.h 805 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _ASM_ARM64_VMALLOC_H
  2. #define _ASM_ARM64_VMALLOC_H
  3. #include <asm/page.h>
  4. #include <asm/pgtable.h>
  5. #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
  6. #define arch_vmap_pud_supported arch_vmap_pud_supported
  7. static inline bool arch_vmap_pud_supported(pgprot_t prot)
  8. {
  9. /*
  10. * SW table walks can't handle removal of intermediate entries.
  11. */
  12. return pud_sect_supported() &&
  13. !IS_ENABLED(CONFIG_PTDUMP_DEBUGFS);
  14. }
  15. #define arch_vmap_pmd_supported arch_vmap_pmd_supported
  16. static inline bool arch_vmap_pmd_supported(pgprot_t prot)
  17. {
  18. /* See arch_vmap_pud_supported() */
  19. return !IS_ENABLED(CONFIG_PTDUMP_DEBUGFS);
  20. }
  21. #endif
  22. #define arch_vmap_pgprot_tagged arch_vmap_pgprot_tagged
  23. static inline pgprot_t arch_vmap_pgprot_tagged(pgprot_t prot)
  24. {
  25. return pgprot_tagged(prot);
  26. }
  27. #endif /* _ASM_ARM64_VMALLOC_H */