sparsemem.h 621 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_IA64_SPARSEMEM_H
  3. #define _ASM_IA64_SPARSEMEM_H
  4. #ifdef CONFIG_SPARSEMEM
  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. */
  9. #define SECTION_SIZE_BITS (30)
  10. #define MAX_PHYSMEM_BITS (50)
  11. #ifdef CONFIG_FORCE_MAX_ZONEORDER
  12. #if ((CONFIG_FORCE_MAX_ZONEORDER - 1 + PAGE_SHIFT) > SECTION_SIZE_BITS)
  13. #undef SECTION_SIZE_BITS
  14. #define SECTION_SIZE_BITS (CONFIG_FORCE_MAX_ZONEORDER - 1 + PAGE_SHIFT)
  15. #endif
  16. #endif
  17. #endif /* CONFIG_SPARSEMEM */
  18. #endif /* _ASM_IA64_SPARSEMEM_H */