File Index
Files and directories
Sign in
FILE

sparsemem.h

File preview with syntax highlighting.

linux-6.19.14/arch/loongarch/include/asm/sparsemem.h C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef _LOONGARCH_SPARSEMEM_H
 3#define _LOONGARCH_SPARSEMEM_H
 4
 5#ifdef CONFIG_SPARSEMEM
 6
 7/*
 8 * SECTION_SIZE_BITS		2^N: how big each section will be
 9 * MAX_PHYSMEM_BITS		2^N: how much memory we can have in that space
10 */
11#define SECTION_SIZE_BITS	29 /* 2^29 = Largest Huge Page Size */
12#define MAX_PHYSMEM_BITS	48
13
14#ifdef CONFIG_SPARSEMEM_VMEMMAP
15#define VMEMMAP_SIZE	(sizeof(struct page) * (1UL << (cpu_pabits + 1 - PAGE_SHIFT)))
16#endif
17
18#endif /* CONFIG_SPARSEMEM */
19
20#ifndef VMEMMAP_SIZE
21#define VMEMMAP_SIZE	0	/* 1, For FLATMEM; 2, For SPARSEMEM without VMEMMAP. */
22#endif
23
24#define INIT_MEMBLOCK_RESERVED_REGIONS	(INIT_MEMBLOCK_REGIONS + NR_CPUS)
25
26#endif /* _LOONGARCH_SPARSEMEM_H */
~/ Read-only file preview.