Skip to content

Commit 1035faf

Browse files
Matt TolentinoLinus Torvalds
authored andcommitted
[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: Matt Tolentino <matthew.e.tolentino@intel.com> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 0733266 commit 1035faf

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎arch/x86_64/Kconfig‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,27 @@ config NUMA
274274
bool
275275
default n
276276

277+
config ARCH_DISCONTIGMEM_ENABLE
278+
def_bool y
279+
depends on NUMA
280+
281+
config ARCH_DISCONTIGMEM_DEFAULT
282+
def_bool y
283+
depends on NUMA
284+
285+
config ARCH_SPARSEMEM_ENABLE
286+
def_bool y
287+
depends on NUMA
288+
289+
config ARCH_FLATMEM_ENABLE
290+
def_bool y
291+
depends on !NUMA
292+
277293
source "mm/Kconfig"
278294

295+
config HAVE_ARCH_EARLY_PFN_TO_NID
296+
def_bool y
297+
279298
config HAVE_DEC_LOCK
280299
bool
281300
depends on SMP

0 commit comments

Comments
 (0)