]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - arch/mips/include/asm/sparsemem.h
UBUNTU: Ubuntu-5.4.0-117.132
[mirror_ubuntu-focal-kernel.git] / arch / mips / include / asm / sparsemem.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
b1c231f5
CR
2#ifndef _MIPS_SPARSEMEM_H
3#define _MIPS_SPARSEMEM_H
4#ifdef CONFIG_SPARSEMEM
5
6/*
7 * SECTION_SIZE_BITS 2^N: how big each section will be
8 * MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space
9 */
aa1762f4 10#if defined(CONFIG_MIPS_HUGE_TLB_SUPPORT) && defined(CONFIG_PAGE_SIZE_64KB)
85f993b8
DD
11# define SECTION_SIZE_BITS 29
12#else
13# define SECTION_SIZE_BITS 28
14#endif
c4617318 15#define MAX_PHYSMEM_BITS 48
b1c231f5
CR
16
17#endif /* CONFIG_SPARSEMEM */
18#endif /* _MIPS_SPARSEMEM_H */