Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1035faf1 authored by Matt Tolentino's avatar Matt Tolentino Committed by Linus Torvalds
Browse files

[PATCH] add x86-64 Kconfig options for sparsemem



Add the requisite arch specific Kconfig options to enable the use of the
sparsemem implementation for NUMA kernels on x86-64.

Signed-off-by: default avatarMatt Tolentino <matthew.e.tolentino@intel.com>
Signed-off-by: default avatarDave Hansen <haveblue@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 07332663
Loading
Loading
Loading
Loading
+19 −0
Original line number Original line Diff line number Diff line
@@ -274,8 +274,27 @@ config NUMA
       bool
       bool
       default n
       default n


config ARCH_DISCONTIGMEM_ENABLE
	def_bool y
	depends on NUMA

config ARCH_DISCONTIGMEM_DEFAULT
	def_bool y
	depends on NUMA

config ARCH_SPARSEMEM_ENABLE
	def_bool y
	depends on NUMA

config ARCH_FLATMEM_ENABLE
	def_bool y
	depends on !NUMA

source "mm/Kconfig"
source "mm/Kconfig"


config HAVE_ARCH_EARLY_PFN_TO_NID
	def_bool y

config HAVE_DEC_LOCK
config HAVE_DEC_LOCK
	bool
	bool
	depends on SMP
	depends on SMP