[PATCH] enable sparsemem without CONFIG_NUMA

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Linux Kernel <linux-kernel@...>
Date: Tuesday, August 12, 2008 - 1:40 pm

Linus,

While testing for more than 8 cpus, I couldn't select sparsemem when 
CONFIG_X86_GENERICARCH is selected instead of CONFIG_X86_PC.

Here's a patch to enable sparsemem independent of NUMA instead of just 
flatmem ... unless there a reason for sparsemem to depend on NUMA for 
more than 8 CPUs?


Thanks,
Jeff


--- ./arch/x86/Kconfig.org	2008-08-06 18:41:08 +0800
+++ ./arch/x86/Kconfig	2008-08-06 18:48:13 +0800
@@ -1035,7 +1035,7 @@

  config ARCH_FLATMEM_ENABLE
  	def_bool y
-	depends on X86_32 && ARCH_SELECT_MEMORY_MODEL && X86_PC && !NUMA
+	depends on X86_32 && ARCH_SELECT_MEMORY_MODEL && !NUMA

  config ARCH_DISCONTIGMEM_ENABLE
  	def_bool y
@@ -1051,7 +1051,7 @@

  config ARCH_SPARSEMEM_ENABLE
  	def_bool y
-	depends on X86_64 || NUMA || (EXPERIMENTAL && X86_PC)
+	depends on X86_64 || NUMA || (EXPERIMENTAL && X86_PC) || X86_GENERICARCH
  	select SPARSEMEM_STATIC if X86_32
  	select SPARSEMEM_VMEMMAP_ENABLE if X86_64

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] enable sparsemem without CONFIG_NUMA, Jeff Chua, (Tue Aug 12, 1:40 pm)
Re: [PATCH] enable sparsemem without CONFIG_NUMA, Ingo Molnar, (Wed Aug 13, 10:15 am)