2019-11-28 08:19:36 +01:00
|
|
|
#ifndef _ASM_POWERPC_VMALLOC_H
|
|
|
|
#define _ASM_POWERPC_VMALLOC_H
|
|
|
|
|
2021-04-29 22:58:30 -07:00
|
|
|
#include <asm/mmu.h>
|
2021-04-29 22:58:26 -07:00
|
|
|
#include <asm/page.h>
|
|
|
|
|
|
|
|
#ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
|
2021-04-29 22:58:30 -07:00
|
|
|
|
2021-04-29 22:58:39 -07:00
|
|
|
#define arch_vmap_pud_supported arch_vmap_pud_supported
|
2024-02-13 14:58:37 +01:00
|
|
|
static __always_inline bool arch_vmap_pud_supported(pgprot_t prot)
|
2021-04-29 22:58:30 -07:00
|
|
|
{
|
|
|
|
/* HPT does not cope with large pages in the vmalloc area */
|
|
|
|
return radix_enabled();
|
|
|
|
}
|
|
|
|
|
2021-04-29 22:58:39 -07:00
|
|
|
#define arch_vmap_pmd_supported arch_vmap_pmd_supported
|
2024-02-13 14:58:37 +01:00
|
|
|
static __always_inline bool arch_vmap_pmd_supported(pgprot_t prot)
|
2021-04-29 22:58:30 -07:00
|
|
|
{
|
|
|
|
return radix_enabled();
|
|
|
|
}
|
2021-04-29 22:58:39 -07:00
|
|
|
|
2021-04-29 22:58:26 -07:00
|
|
|
#endif
|
|
|
|
|
2019-11-28 08:19:36 +01:00
|
|
|
#endif /* _ASM_POWERPC_VMALLOC_H */
|