xref: /linux/arch/powerpc/include/asm/vmalloc.h (revision 4b660dbd9ee2059850fd30e0df420ca7a38a1856)
1 #ifndef _ASM_POWERPC_VMALLOC_H
2 #define _ASM_POWERPC_VMALLOC_H
3 
4 #include <asm/mmu.h>
5 #include <asm/page.h>
6 
7 #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
8 
9 #define arch_vmap_pud_supported arch_vmap_pud_supported
10 static __always_inline bool arch_vmap_pud_supported(pgprot_t prot)
11 {
12 	/* HPT does not cope with large pages in the vmalloc area */
13 	return radix_enabled();
14 }
15 
16 #define arch_vmap_pmd_supported arch_vmap_pmd_supported
17 static __always_inline bool arch_vmap_pmd_supported(pgprot_t prot)
18 {
19 	return radix_enabled();
20 }
21 
22 #endif
23 
24 #endif /* _ASM_POWERPC_VMALLOC_H */
25