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