Commit d78d0891 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Use SPARSEMEM_STATIC

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: default avatarDavid S. Miller <davem@davemloft.net>
parent 43bed127
...@@ -220,6 +220,7 @@ config ARCH_SPARSEMEM_ENABLE ...@@ -220,6 +220,7 @@ config ARCH_SPARSEMEM_ENABLE
config ARCH_SPARSEMEM_DEFAULT config ARCH_SPARSEMEM_DEFAULT
def_bool y def_bool y
select SPARSEMEM_STATIC
config LARGE_ALLOCS config LARGE_ALLOCS
def_bool y def_bool y
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
#ifdef __KERNEL__ #ifdef __KERNEL__
#define SECTION_SIZE_BITS 26 #define SECTION_SIZE_BITS 31
#define MAX_PHYSADDR_BITS 42 #define MAX_PHYSADDR_BITS 41
#define MAX_PHYSMEM_BITS 42 #define MAX_PHYSMEM_BITS 41
#endif /* !(__KERNEL__) */ #endif /* !(__KERNEL__) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment