1 #ifndef _ASM_ARM64_VMALLOC_H
2 #define _ASM_ARM64_VMALLOC_H
5 #include <asm/pgtable.h>
7 #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
9 #define arch_vmap_pud_supported arch_vmap_pud_supported
10 static inline bool arch_vmap_pud_supported(pgprot_t prot)
13 * SW table walks can't handle removal of intermediate entries.
15 return pud_sect_supported() &&
16 !IS_ENABLED(CONFIG_PTDUMP_DEBUGFS);
19 #define arch_vmap_pmd_supported arch_vmap_pmd_supported
20 static inline bool arch_vmap_pmd_supported(pgprot_t prot)
22 /* See arch_vmap_pud_supported() */
23 return !IS_ENABLED(CONFIG_PTDUMP_DEBUGFS);
28 #define arch_vmap_pgprot_tagged arch_vmap_pgprot_tagged
29 static inline pgprot_t arch_vmap_pgprot_tagged(pgprot_t prot)
31 return pgprot_tagged(prot);
34 #endif /* _ASM_ARM64_VMALLOC_H */