summaryrefslogtreecommitdiffstats
path: root/arch/sparc/mm/init_64.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2014-09-24 21:20:14 -0700
committerDavid S. Miller <davem@davemloft.net>2014-10-05 16:53:39 -0700
commitc06240c7f5c39c83dfd7849c0770775562441b96 (patch)
treece4deb5dadaea70c75d3f6680495055f16efb9c3 /arch/sparc/mm/init_64.h
parent0dd5b7b09e13dae32869371e08e1048349fd040c (diff)
downloadop-kernel-dev-c06240c7f5c39c83dfd7849c0770775562441b96.zip
op-kernel-dev-c06240c7f5c39c83dfd7849c0770775562441b96.tar.gz
sparc64: Use kernel page tables for vmemmap.
For sparse memory configurations, the vmemmap array behaves terribly and it takes up an inordinate amount of space in the BSS section of the kernel image unconditionally. Just build huge PMDs and look them up just like we do for TLB misses in the vmalloc area. Kernel BSS shrinks by about 2MB. Signed-off-by: David S. Miller <davem@davemloft.net> Acked-by: Bob Picco <bob.picco@oracle.com>
Diffstat (limited to 'arch/sparc/mm/init_64.h')
-rw-r--r--arch/sparc/mm/init_64.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/sparc/mm/init_64.h b/arch/sparc/mm/init_64.h
index 29ff73f..a4c0960 100644
--- a/arch/sparc/mm/init_64.h
+++ b/arch/sparc/mm/init_64.h
@@ -31,15 +31,4 @@ extern unsigned long kern_locked_tte_data;
void prom_world(int enter);
-#ifdef CONFIG_SPARSEMEM_VMEMMAP
-#define VMEMMAP_CHUNK_SHIFT 22
-#define VMEMMAP_CHUNK (1UL << VMEMMAP_CHUNK_SHIFT)
-#define VMEMMAP_CHUNK_MASK ~(VMEMMAP_CHUNK - 1UL)
-#define VMEMMAP_ALIGN(x) (((x)+VMEMMAP_CHUNK-1UL)&VMEMMAP_CHUNK_MASK)
-
-#define VMEMMAP_SIZE ((((1UL << MAX_PHYSADDR_BITS) >> PAGE_SHIFT) * \
- sizeof(struct page)) >> VMEMMAP_CHUNK_SHIFT)
-extern unsigned long vmemmap_table[VMEMMAP_SIZE];
-#endif
-
#endif /* _SPARC64_MM_INIT_H */
OpenPOWER on IntegriCloud