Back to home page

OSCL-LXR

 
 

    


0001 #ifndef _ASM_POWERPC_VMALLOC_H
0002 #define _ASM_POWERPC_VMALLOC_H
0003 
0004 #include <asm/mmu.h>
0005 #include <asm/page.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     /* HPT does not cope with large pages in the vmalloc area */
0013     return radix_enabled();
0014 }
0015 
0016 #define arch_vmap_pmd_supported arch_vmap_pmd_supported
0017 static inline bool arch_vmap_pmd_supported(pgprot_t prot)
0018 {
0019     return radix_enabled();
0020 }
0021 
0022 #endif
0023 
0024 #endif /* _ASM_POWERPC_VMALLOC_H */