aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel
diff options
context:
space:
mode:
authorMatt Tolentino <metolent@snoqualmie.dp.intel.com>2005-06-23 03:08:06 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-23 12:45:06 -0400
commit2b97690f4cd960779fb351b7cd9974390afabb36 (patch)
tree26a94d00bc67f3036cea966ba7435f8e1efd3779 /arch/x86_64/kernel
parent1035faf1b19efb83d5626985240f52cd149dd39b (diff)
[PATCH] reorganize x86-64 NUMA and DISCONTIGMEM config options
In order to use the alternative sparsemem implmentation for NUMA kernels, we need to reorganize the config options. This patch effectively abstracts out the CONFIG_DISCONTIGMEM options to CONFIG_NUMA in most cases. Thus, the discontigmem implementation may be employed as always, but the sparsemem implementation may be used alternatively. 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>
Diffstat (limited to 'arch/x86_64/kernel')
-rw-r--r--arch/x86_64/kernel/head64.c2
-rw-r--r--arch/x86_64/kernel/setup.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86_64/kernel/head64.c b/arch/x86_64/kernel/head64.c
index 0f8c78dcd38c..cf6ab147a2a5 100644
--- a/arch/x86_64/kernel/head64.c
+++ b/arch/x86_64/kernel/head64.c
@@ -94,7 +94,7 @@ void __init x86_64_start_kernel(char * real_mode_data)
94 s = strstr(saved_command_line, "earlyprintk="); 94 s = strstr(saved_command_line, "earlyprintk=");
95 if (s != NULL) 95 if (s != NULL)
96 setup_early_printk(s); 96 setup_early_printk(s);
97#ifdef CONFIG_DISCONTIGMEM 97#ifdef CONFIG_NUMA
98 s = strstr(saved_command_line, "numa="); 98 s = strstr(saved_command_line, "numa=");
99 if (s != NULL) 99 if (s != NULL)
100 numa_setup(s+5); 100 numa_setup(s+5);
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c
index 125a0bb1f5d6..dd8419b37a7e 100644
--- a/arch/x86_64/kernel/setup.c
+++ b/arch/x86_64/kernel/setup.c
@@ -348,7 +348,7 @@ static __init void parse_cmdline_early (char ** cmdline_p)
348 if (!memcmp(from, "mem=", 4)) 348 if (!memcmp(from, "mem=", 4))
349 parse_memopt(from+4, &from); 349 parse_memopt(from+4, &from);
350 350
351#ifdef CONFIG_DISCONTIGMEM 351#ifdef CONFIG_NUMA
352 if (!memcmp(from, "numa=", 5)) 352 if (!memcmp(from, "numa=", 5))
353 numa_setup(from+5); 353 numa_setup(from+5);
354#endif 354#endif
@@ -377,7 +377,7 @@ static __init void parse_cmdline_early (char ** cmdline_p)
377 *cmdline_p = command_line; 377 *cmdline_p = command_line;
378} 378}
379 379
380#ifndef CONFIG_DISCONTIGMEM 380#ifndef CONFIG_NUMA
381static void __init contig_initmem_init(void) 381static void __init contig_initmem_init(void)
382{ 382{
383 unsigned long bootmap_size, bootmap; 383 unsigned long bootmap_size, bootmap;
@@ -554,7 +554,7 @@ void __init setup_arch(char **cmdline_p)
554 acpi_numa_init(); 554 acpi_numa_init();
555#endif 555#endif
556 556
557#ifdef CONFIG_DISCONTIGMEM 557#ifdef CONFIG_NUMA
558 numa_initmem_init(0, end_pfn); 558 numa_initmem_init(0, end_pfn);
559#else 559#else
560 contig_initmem_init(); 560 contig_initmem_init();