diff options
author | travis@sgi.com <travis@sgi.com> | 2008-01-30 07:33:11 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:11 -0500 |
commit | df3825c56dd70a4d7796041388f3cfe51c1db832 (patch) | |
tree | 6110ef6ce26704679b9d13399e2aa368f3430126 /arch/x86/kernel/setup_64.c | |
parent | 3b41908902df1dba141cd7de1a727bb03718a654 (diff) |
x86: change NR_CPUS arrays in numa_64
Change the following static arrays sized by NR_CPUS to
per_cpu data variables:
char cpu_to_node_map[NR_CPUS];
Signed-off-by: Mike Travis <travis@sgi.com>
Reviewed-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/setup_64.c')
-rw-r--r-- | arch/x86/kernel/setup_64.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c index e2beb4cba15f..529e45c37b1c 100644 --- a/arch/x86/kernel/setup_64.c +++ b/arch/x86/kernel/setup_64.c | |||
@@ -65,6 +65,7 @@ | |||
65 | #include <asm/cacheflush.h> | 65 | #include <asm/cacheflush.h> |
66 | #include <asm/mce.h> | 66 | #include <asm/mce.h> |
67 | #include <asm/ds.h> | 67 | #include <asm/ds.h> |
68 | #include <asm/topology.h> | ||
68 | 69 | ||
69 | #ifdef CONFIG_PARAVIRT | 70 | #ifdef CONFIG_PARAVIRT |
70 | #include <asm/paravirt.h> | 71 | #include <asm/paravirt.h> |
@@ -359,8 +360,9 @@ void __init setup_arch(char **cmdline_p) | |||
359 | io_delay_init(); | 360 | io_delay_init(); |
360 | 361 | ||
361 | #ifdef CONFIG_SMP | 362 | #ifdef CONFIG_SMP |
362 | /* setup to use the static apicid table during kernel startup */ | 363 | /* setup to use the early static init tables during kernel startup */ |
363 | x86_cpu_to_apicid_early_ptr = (void *)&x86_cpu_to_apicid_init; | 364 | x86_cpu_to_apicid_early_ptr = (void *)&x86_cpu_to_apicid_init; |
365 | x86_cpu_to_node_map_early_ptr = (void *)&x86_cpu_to_node_map_init; | ||
364 | #endif | 366 | #endif |
365 | 367 | ||
366 | #ifdef CONFIG_ACPI | 368 | #ifdef CONFIG_ACPI |