Chad Reese | b1c231f | 2006-05-30 17:16:49 -0700 | [diff] [blame] | 1 | #ifndef _MIPS_SPARSEMEM_H |
| 2 | #define _MIPS_SPARSEMEM_H |
| 3 | #ifdef CONFIG_SPARSEMEM |
| 4 | |
| 5 | /* |
| 6 | * SECTION_SIZE_BITS 2^N: how big each section will be |
| 7 | * MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space |
| 8 | */ |
David Daney | 85f993b | 2012-05-04 11:09:35 -0700 | [diff] [blame] | 9 | #if defined(CONFIG_HUGETLB_PAGE) && defined(CONFIG_PAGE_SIZE_64KB) |
| 10 | # define SECTION_SIZE_BITS 29 |
| 11 | #else |
| 12 | # define SECTION_SIZE_BITS 28 |
| 13 | #endif |
Chad Reese | b1c231f | 2006-05-30 17:16:49 -0700 | [diff] [blame] | 14 | #define MAX_PHYSMEM_BITS 35 |
| 15 | |
| 16 | #endif /* CONFIG_SPARSEMEM */ |
| 17 | #endif /* _MIPS_SPARSEMEM_H */ |