sparsemem.h 582 B

1234567891011121314151617181920
  1. #ifndef _ASM_IA64_SPARSEMEM_H
  2. #define _ASM_IA64_SPARSEMEM_H
  3. #ifdef CONFIG_SPARSEMEM
  4. /*
  5. * SECTION_SIZE_BITS 2^N: how big each section will be
  6. * MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space
  7. */
  8. #define SECTION_SIZE_BITS (30)
  9. #define MAX_PHYSMEM_BITS (50)
  10. #ifdef CONFIG_FORCE_MAX_ZONEORDER
  11. #if ((CONFIG_FORCE_MAX_ZONEORDER - 1 + PAGE_SHIFT) > SECTION_SIZE_BITS)
  12. #undef SECTION_SIZE_BITS
  13. #define SECTION_SIZE_BITS (CONFIG_FORCE_MAX_ZONEORDER - 1 + PAGE_SHIFT)
  14. #endif
  15. #endif
  16. #endif /* CONFIG_SPARSEMEM */
  17. #endif /* _ASM_IA64_SPARSEMEM_H */