Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d78d0891d3dd976a2fb707c6c691d9cd5ed60727
Commit:     d78d0891d3dd976a2fb707c6c691d9cd5ed60727
Parent:     43bed127376ff2ef9c268cf6688a43d0fbed2ff4
Author:     David S. Miller <[EMAIL PROTECTED]>
AuthorDate: Wed Mar 14 22:47:01 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Thu Apr 26 01:55:22 2007 -0700

    [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 <[EMAIL PROTECTED]>
---
 arch/sparc64/Kconfig            |    1 +
 include/asm-sparc64/sparsemem.h |    6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/arch/sparc64/Kconfig b/arch/sparc64/Kconfig
index 51c87fd..590a41b 100644
--- a/arch/sparc64/Kconfig
+++ b/arch/sparc64/Kconfig
@@ -220,6 +220,7 @@ config ARCH_SPARSEMEM_ENABLE
 
 config ARCH_SPARSEMEM_DEFAULT
        def_bool y
+       select SPARSEMEM_STATIC
 
 config LARGE_ALLOCS
        def_bool y
diff --git a/include/asm-sparc64/sparsemem.h b/include/asm-sparc64/sparsemem.h
index ed5c9d8..411e0e2 100644
--- a/include/asm-sparc64/sparsemem.h
+++ b/include/asm-sparc64/sparsemem.h
@@ -3,9 +3,9 @@
 
 #ifdef __KERNEL__
 
-#define SECTION_SIZE_BITS       26
-#define MAX_PHYSADDR_BITS       42
-#define MAX_PHYSMEM_BITS        42
+#define SECTION_SIZE_BITS       31
+#define MAX_PHYSADDR_BITS       41
+#define MAX_PHYSMEM_BITS        41
 
 #endif /* !(__KERNEL__) */
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to