aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2007-10-16 04:24:14 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 12:42:51 -0400
commit29c71111d0557385328211b130246a90f9223b46 (patch)
tree5588a49ee548d38e15bd7541cec29e069b9e457c /include/linux/mm.h
parent8f6aac419bd590f535fb110875a51f7db2b62b5b (diff)
vmemmap: generify initialisation via helpers
Convert the common vmemmap population into initialisation helpers for use by architecture vmemmap populators. All architecture implementing the SPARSEMEM_VMEMMAP variant supply an architecture specific vmemmap_populate() initialiser, which may make use of the helpers. This allows us to clean up and remove the initialisation Kconfig entries. With this patch there is a single SPARSEMEM_VMEMMAP_ENABLE Kconfig option to indicate use of that variant. Signed-off-by: Andy Whitcroft <apw@shadowen.org> Acked-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index d216abbd0574..fbff8e481cc4 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1219,10 +1219,15 @@ extern int randomize_va_space;
1219const char * arch_vma_name(struct vm_area_struct *vma); 1219const char * arch_vma_name(struct vm_area_struct *vma);
1220 1220
1221struct page *sparse_early_mem_map_populate(unsigned long pnum, int nid); 1221struct page *sparse_early_mem_map_populate(unsigned long pnum, int nid);
1222int vmemmap_populate(struct page *start_page, unsigned long pages, int node); 1222pgd_t *vmemmap_pgd_populate(unsigned long addr, int node);
1223int vmemmap_populate_pmd(pud_t *, unsigned long, unsigned long, int); 1223pud_t *vmemmap_pud_populate(pgd_t *pgd, unsigned long addr, int node);
1224pmd_t *vmemmap_pmd_populate(pud_t *pud, unsigned long addr, int node);
1225pte_t *vmemmap_pte_populate(pmd_t *pmd, unsigned long addr, int node);
1224void *vmemmap_alloc_block(unsigned long size, int node); 1226void *vmemmap_alloc_block(unsigned long size, int node);
1225void vmemmap_verify(pte_t *, int, unsigned long, unsigned long); 1227void vmemmap_verify(pte_t *, int, unsigned long, unsigned long);
1228int vmemmap_populate_basepages(struct page *start_page,
1229 unsigned long pages, int node);
1230int vmemmap_populate(struct page *start_page, unsigned long pages, int node);
1226 1231
1227#endif /* __KERNEL__ */ 1232#endif /* __KERNEL__ */
1228#endif /* _LINUX_MM_H */ 1233#endif /* _LINUX_MM_H */