mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 17:25:03 +07:00
85f993b807
When using sparsemem, we need to adjust some constants as the resulting huge pages are 512MB in size. Signed-off-by: David Daney <david.daney@cavium.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/3745/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 lines
445 B
C
18 lines
445 B
C
#ifndef _MIPS_SPARSEMEM_H
|
|
#define _MIPS_SPARSEMEM_H
|
|
#ifdef CONFIG_SPARSEMEM
|
|
|
|
/*
|
|
* SECTION_SIZE_BITS 2^N: how big each section will be
|
|
* MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space
|
|
*/
|
|
#if defined(CONFIG_HUGETLB_PAGE) && defined(CONFIG_PAGE_SIZE_64KB)
|
|
# define SECTION_SIZE_BITS 29
|
|
#else
|
|
# define SECTION_SIZE_BITS 28
|
|
#endif
|
|
#define MAX_PHYSMEM_BITS 35
|
|
|
|
#endif /* CONFIG_SPARSEMEM */
|
|
#endif /* _MIPS_SPARSEMEM_H */
|