From: Andy Whitcroft Date: Thu, 23 Jun 2005 07:07:53 +0000 (-0700) Subject: [PATCH] generify memory present X-Git-Tag: v2.6.13-rc1~68^2~516 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af705362ab6018071310c5fcd436a6b457517d5f;p=linux-2.6 [PATCH] generify memory present Allow architectures to indicate that they will be providing hooks to indice installed memory areas, memory_present(). Provide prototypes for the i386 implementation. Signed-off-by: Andy Whitcroft Signed-off-by: Dave Hansen Signed-off-by: Martin Bligh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/Kconfig b/arch/i386/Kconfig index a8128f9973..3b7248126d 100644 --- a/arch/i386/Kconfig +++ b/arch/i386/Kconfig @@ -793,7 +793,7 @@ config HAVE_ARCH_BOOTMEM_NODE depends on NUMA default y -config HAVE_MEMORY_PRESENT +config ARCH_HAVE_MEMORY_PRESENT bool depends on DISCONTIGMEM default y diff --git a/mm/Kconfig b/mm/Kconfig index 8283685f3b..5127441561 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -53,3 +53,7 @@ config FLATMEM config NEED_MULTIPLE_NODES def_bool y depends on DISCONTIGMEM || NUMA + +config HAVE_MEMORY_PRESENT + def_bool y + depends on ARCH_HAVE_MEMORY_PRESENT