LWN.net Logo

generify memory present

From:  Andy Whitcroft <apw@shadowen.org>
To:  akpm@osdl.org
Subject:  [2/6] generify memory present
Date:  Wed, 04 May 2005 21:22:56 +0100
Cc:  linux-mm@kvack.org, linux-kernel@vger.kernel.org, apw@shadowen.org, haveblue@us.ibm.com, kravetz@us.ibm.com

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 <apw@shadowen.org>
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Martin Bligh <mbligh@aracnet.com>
---
 arch/i386/Kconfig |    2 +-
 mm/Kconfig        |    4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff -X /home/apw/brief/lib/vdiff.excl -rupN reference/arch/i386/Kconfig
current/arch/i386/Kconfig
--- reference/arch/i386/Kconfig	2005-05-04 20:54:26.000000000 +0100
+++ current/arch/i386/Kconfig	2005-05-04 20:54:26.000000000 +0100
@@ -777,7 +777,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 -X /home/apw/brief/lib/vdiff.excl -rupN reference/mm/Kconfig
current/mm/Kconfig
--- reference/mm/Kconfig	2005-05-04 20:54:24.000000000 +0100
+++ current/mm/Kconfig	2005-05-04 20:54:26.000000000 +0100
@@ -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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Copyright © 2005, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds