aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-03-15 01:47:01 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 04:55:22 -0400
commitd78d0891d3dd976a2fb707c6c691d9cd5ed60727 (patch)
tree75a1f09a7f316c5cfd6ab3d1dc0e48e89320a200 /include
parent43bed127376ff2ef9c268cf6688a43d0fbed2ff4 (diff)
[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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/asm-sparc64/sparsemem.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-sparc64/sparsemem.h b/include/asm-sparc64/sparsemem.h
index ed5c9d8541e2..411e0e255cf3 100644
--- a/include/asm-sparc64/sparsemem.h
+++ b/include/asm-sparc64/sparsemem.h
@@ -3,9 +3,9 @@
3 3
4#ifdef __KERNEL__ 4#ifdef __KERNEL__
5 5
6#define SECTION_SIZE_BITS 26 6#define SECTION_SIZE_BITS 31
7#define MAX_PHYSADDR_BITS 42 7#define MAX_PHYSADDR_BITS 41
8#define MAX_PHYSMEM_BITS 42 8#define MAX_PHYSMEM_BITS 41
9 9
10#endif /* !(__KERNEL__) */ 10#endif /* !(__KERNEL__) */
11 11