]> err.no Git - linux-2.6/commit
vmemmap: generify initialisation via helpers
authorAndy Whitcroft <apw@shadowen.org>
Tue, 16 Oct 2007 08:24:14 +0000 (01:24 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:42:51 +0000 (09:42 -0700)
commit29c71111d0557385328211b130246a90f9223b46
tree5588a49ee548d38e15bd7541cec29e069b9e457c
parent8f6aac419bd590f535fb110875a51f7db2b62b5b
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>
include/linux/mm.h
mm/Kconfig
mm/sparse-vmemmap.c