0001 #ifndef _ASM_ARM64_VMALLOC_H
0002 #define _ASM_ARM64_VMALLOC_H
0003
0004 #include <asm/page.h>
0005 #include <asm/pgtable.h>
0006
0007 #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
0008
0009 #define arch_vmap_pud_supported arch_vmap_pud_supported
0010 static inline bool arch_vmap_pud_supported(pgprot_t prot)
0011 {
0012
0013
0014
0015 return pud_sect_supported() &&
0016 !IS_ENABLED(CONFIG_PTDUMP_DEBUGFS);
0017 }
0018
0019 #define arch_vmap_pmd_supported arch_vmap_pmd_supported
0020 static inline bool arch_vmap_pmd_supported(pgprot_t prot)
0021 {
0022
0023 return !IS_ENABLED(CONFIG_PTDUMP_DEBUGFS);
0024 }
0025
0026 #endif
0027
0028 #define arch_vmap_pgprot_tagged arch_vmap_pgprot_tagged
0029 static inline pgprot_t arch_vmap_pgprot_tagged(pgprot_t prot)
0030 {
0031 return pgprot_tagged(prot);
0032 }
0033
0034 #endif