File Index
Files and directories
Sign in
FILE

vmalloc.h

File preview with syntax highlighting.

linux-6.19.14/arch/riscv/include/asm/vmalloc.h C
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2#ifndef _ASM_RISCV_VMALLOC_H
 3#define _ASM_RISCV_VMALLOC_H
 4
 5#ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
 6
 7extern bool pgtable_l4_enabled, pgtable_l5_enabled;
 8
 9#define IOREMAP_MAX_ORDER (PUD_SHIFT)
10
11#define arch_vmap_pud_supported arch_vmap_pud_supported
12static inline bool arch_vmap_pud_supported(pgprot_t prot)
13{
14	return pgtable_l4_enabled || pgtable_l5_enabled;
15}
16
17#define arch_vmap_pmd_supported arch_vmap_pmd_supported
18static inline bool arch_vmap_pmd_supported(pgprot_t prot)
19{
20	return true;
21}
22
23#endif
24
25#endif /* _ASM_RISCV_VMALLOC_H */
~/ Read-only file preview.