diff options
author | Andy Whitcroft <apw@shadowen.org> | 2007-10-16 04:24:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:42:51 -0400 |
commit | 29c71111d0557385328211b130246a90f9223b46 (patch) | |
tree | 5588a49ee548d38e15bd7541cec29e069b9e457c /include/linux | |
parent | 8f6aac419bd590f535fb110875a51f7db2b62b5b (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')
-rw-r--r-- | include/linux/mm.h | 9 |
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; | |||
1219 | const char * arch_vma_name(struct vm_area_struct *vma); | 1219 | const char * arch_vma_name(struct vm_area_struct *vma); |
1220 | 1220 | ||
1221 | struct page *sparse_early_mem_map_populate(unsigned long pnum, int nid); | 1221 | struct page *sparse_early_mem_map_populate(unsigned long pnum, int nid); |
1222 | int vmemmap_populate(struct page *start_page, unsigned long pages, int node); | 1222 | pgd_t *vmemmap_pgd_populate(unsigned long addr, int node); |
1223 | int vmemmap_populate_pmd(pud_t *, unsigned long, unsigned long, int); | 1223 | pud_t *vmemmap_pud_populate(pgd_t *pgd, unsigned long addr, int node); |
1224 | pmd_t *vmemmap_pmd_populate(pud_t *pud, unsigned long addr, int node); | ||
1225 | pte_t *vmemmap_pte_populate(pmd_t *pmd, unsigned long addr, int node); | ||
1224 | void *vmemmap_alloc_block(unsigned long size, int node); | 1226 | void *vmemmap_alloc_block(unsigned long size, int node); |
1225 | void vmemmap_verify(pte_t *, int, unsigned long, unsigned long); | 1227 | void vmemmap_verify(pte_t *, int, unsigned long, unsigned long); |
1228 | int vmemmap_populate_basepages(struct page *start_page, | ||
1229 | unsigned long pages, int node); | ||
1230 | int 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 */ |