aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/ia64/Kconfig1
-rw-r--r--arch/ia64/mm/discontig.c8
-rw-r--r--include/asm-ia64/pgtable.h6
3 files changed, 15 insertions, 0 deletions
diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig
index 2e6310b8eab7..802b082e216d 100644
--- a/arch/ia64/Kconfig
+++ b/arch/ia64/Kconfig
@@ -348,6 +348,7 @@ config ARCH_FLATMEM_ENABLE
348config ARCH_SPARSEMEM_ENABLE 348config ARCH_SPARSEMEM_ENABLE
349 def_bool y 349 def_bool y
350 depends on ARCH_DISCONTIGMEM_ENABLE 350 depends on ARCH_DISCONTIGMEM_ENABLE
351 select SPARSEMEM_VMEMMAP_ENABLE
351 352
352config ARCH_DISCONTIGMEM_DEFAULT 353config ARCH_DISCONTIGMEM_DEFAULT
353 def_bool y if (IA64_SGI_SN2 || IA64_GENERIC || IA64_HP_ZX1 || IA64_HP_ZX1_SWIOTLB) 354 def_bool y if (IA64_SGI_SN2 || IA64_GENERIC || IA64_HP_ZX1 || IA64_HP_ZX1_SWIOTLB)
diff --git a/arch/ia64/mm/discontig.c b/arch/ia64/mm/discontig.c
index 0d34585058c8..5628067a74d2 100644
--- a/arch/ia64/mm/discontig.c
+++ b/arch/ia64/mm/discontig.c
@@ -715,3 +715,11 @@ void arch_refresh_nodedata(int update_node, pg_data_t *update_pgdat)
715 scatter_node_data(); 715 scatter_node_data();
716} 716}
717#endif 717#endif
718
719#ifdef CONFIG_SPARSEMEM_VMEMMAP
720int __meminit vmemmap_populate(struct page *start_page,
721 unsigned long size, int node)
722{
723 return vmemmap_populate_basepages(start_page, size, node);
724}
725#endif
diff --git a/include/asm-ia64/pgtable.h b/include/asm-ia64/pgtable.h
index de6d01e24dd0..6b4216edbb9c 100644
--- a/include/asm-ia64/pgtable.h
+++ b/include/asm-ia64/pgtable.h
@@ -236,8 +236,14 @@ ia64_phys_addr_valid (unsigned long addr)
236# define VMALLOC_END vmalloc_end 236# define VMALLOC_END vmalloc_end
237 extern unsigned long vmalloc_end; 237 extern unsigned long vmalloc_end;
238#else 238#else
239#if defined(CONFIG_SPARSEMEM) && defined(CONFIG_SPARSEMEM_VMEMMAP)
240/* SPARSEMEM_VMEMMAP uses half of vmalloc... */
241# define VMALLOC_END (RGN_BASE(RGN_GATE) + (1UL << (4*PAGE_SHIFT - 10)))
242# define vmemmap ((struct page *)VMALLOC_END)
243#else
239# define VMALLOC_END (RGN_BASE(RGN_GATE) + (1UL << (4*PAGE_SHIFT - 9))) 244# define VMALLOC_END (RGN_BASE(RGN_GATE) + (1UL << (4*PAGE_SHIFT - 9)))
240#endif 245#endif
246#endif
241 247
242/* fs/proc/kcore.c */ 248/* fs/proc/kcore.c */
243#define kc_vaddr_to_offset(v) ((v) - RGN_BASE(RGN_GATE)) 249#define kc_vaddr_to_offset(v) ((v) - RGN_BASE(RGN_GATE))