mirror of
https://github.com/torvalds/linux.git
synced 2024-12-20 01:52:13 +00:00
d78d0891d3
Decrease the SECTION_SIZE_BITS --> MAX_PHYSADDR_BITS range a little bit. The cost of going to SPARSEMEM_STATIC becomes 8K of BSS space, and in return we save a pointer dereferences on every page struct lookup. Even better we hit the main kernel image for the base address which is in a hugepage locked TLB entry. Signed-off-by: David S. Miller <davem@davemloft.net>
13 lines
249 B
C
13 lines
249 B
C
#ifndef _SPARC64_SPARSEMEM_H
|
|
#define _SPARC64_SPARSEMEM_H
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
#define SECTION_SIZE_BITS 31
|
|
#define MAX_PHYSADDR_BITS 41
|
|
#define MAX_PHYSMEM_BITS 41
|
|
|
|
#endif /* !(__KERNEL__) */
|
|
|
|
#endif /* !(_SPARC64_SPARSEMEM_H) */
|