linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i386 sparsemem: undefined early_pfn_to_nid when !NUMA
@ 2005-05-27 16:28 Dave Hansen
  2005-06-03 15:00 ` Andy Whitcroft
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Hansen @ 2005-05-27 16:28 UTC (permalink / raw)
  To: apw; +Cc: linux-mm, linux-kernel, Dave Hansen

On i386, early_pfn_to_nid() is only defined when discontig.c
is compiled in.  The current dependency doesn't reflect this,
probably because the default i386 config doesn't allow for
SPARSEMEM without NUMA.

But, we'll need SPARSEMEM && !NUMA for memory hotplug, and I
do this for testing anyway.

Andy, please forward on if you concur.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
---

 memhotplug-dave/arch/i386/Kconfig |    1 +
 1 files changed, 1 insertion(+)

diff -puN arch/i386/Kconfig~generify-early_pfn_to_nid-fix arch/i386/Kconfig
--- memhotplug/arch/i386/Kconfig~generify-early_pfn_to_nid-fix	2005-05-27 09:23:07.000000000 -0700
+++ memhotplug-dave/arch/i386/Kconfig	2005-05-27 09:23:07.000000000 -0700
@@ -837,6 +837,7 @@ source "mm/Kconfig"
 config HAVE_ARCH_EARLY_PFN_TO_NID
 	bool
 	default y
+	depends on NUMA
 
 config HIGHPTE
 	bool "Allocate 3rd-level pagetables from highmem"
_
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] i386 sparsemem: undefined early_pfn_to_nid when !NUMA
  2005-05-27 16:28 [PATCH] i386 sparsemem: undefined early_pfn_to_nid when !NUMA Dave Hansen
@ 2005-06-03 15:00 ` Andy Whitcroft
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Whitcroft @ 2005-06-03 15:00 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel, Dave Hansen

Seem benign for normal use and allows testing for hotplug.  Tested
on my test boxes.

Andrew please apply to -mm.

-apw

=== 8< ===
On i386, early_pfn_to_nid() is only defined when discontig.c
is compiled in.  The current dependency doesn't reflect this,
probably because the default i386 config doesn't allow for
SPARSEMEM without NUMA.

But, we'll need SPARSEMEM && !NUMA for memory hotplug, and I
do this for testing anyway.

Andy, please forward on if you concur.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andy Whitcroft <apw@shadowen.org>

diffstat sparsemem-i386-undefined-early_pfn_to_nid-when-not-NUMA
---
 Kconfig |    1 +
 1 files changed, 1 insertion(+)

diff -upN reference/arch/i386/Kconfig current/arch/i386/Kconfig
--- reference/arch/i386/Kconfig
+++ current/arch/i386/Kconfig
@@ -803,6 +803,7 @@ source "mm/Kconfig"
 config HAVE_ARCH_EARLY_PFN_TO_NID
 	bool
 	default y
+	depends on NUMA
 
 config HIGHPTE
 	bool "Allocate 3rd-level pagetables from highmem"
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-03 15:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-27 16:28 [PATCH] i386 sparsemem: undefined early_pfn_to_nid when !NUMA Dave Hansen
2005-06-03 15:00 ` Andy Whitcroft

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox