vmalloc.h 536 B

123456789101112131415161718192021222324
  1. #ifndef _ASM_POWERPC_VMALLOC_H
  2. #define _ASM_POWERPC_VMALLOC_H
  3. #include <asm/mmu.h>
  4. #include <asm/page.h>
  5. #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
  6. #define arch_vmap_pud_supported arch_vmap_pud_supported
  7. static inline bool arch_vmap_pud_supported(pgprot_t prot)
  8. {
  9. /* HPT does not cope with large pages in the vmalloc area */
  10. return radix_enabled();
  11. }
  12. #define arch_vmap_pmd_supported arch_vmap_pmd_supported
  13. static inline bool arch_vmap_pmd_supported(pgprot_t prot)
  14. {
  15. return radix_enabled();
  16. }
  17. #endif
  18. #endif /* _ASM_POWERPC_VMALLOC_H */