aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic_64.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-07-08 05:59:23 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 05:59:23 -0400
commit2b4fa851b2f06fdb04cac808b57324f5e51e1578 (patch)
tree97db3ad5adda7683923630982f68b8b52c86e790 /arch/x86/kernel/apic_64.c
parent3de352bbd86f890dd0c5e1c09a6a1b0b29e0f8ce (diff)
parent46f68e1c6b04a04772e828ff3bcd07ed708805c2 (diff)
Merge branch 'x86/numa' into x86/devel
Conflicts: arch/x86/Kconfig arch/x86/kernel/e820.c arch/x86/kernel/efi_64.c arch/x86/kernel/mpparse.c arch/x86/kernel/setup.c arch/x86/kernel/setup_32.c arch/x86/mm/init_64.c include/asm-x86/proto.h Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic_64.c')
-rw-r--r--arch/x86/kernel/apic_64.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c
index d7406aa1c985..e494809fc508 100644
--- a/arch/x86/kernel/apic_64.c
+++ b/arch/x86/kernel/apic_64.c
@@ -90,9 +90,6 @@ static unsigned long apic_phys;
90 90
91unsigned long mp_lapic_addr; 91unsigned long mp_lapic_addr;
92 92
93DEFINE_PER_CPU(u16, x86_bios_cpu_apicid) = BAD_APICID;
94EXPORT_PER_CPU_SYMBOL(x86_bios_cpu_apicid);
95
96unsigned int __cpuinitdata maxcpus = NR_CPUS; 93unsigned int __cpuinitdata maxcpus = NR_CPUS;
97/* 94/*
98 * Get the LAPIC version 95 * Get the LAPIC version
@@ -1075,9 +1072,9 @@ void __cpuinit generic_processor_info(int apicid, int version)
1075 max_physical_apicid = apicid; 1072 max_physical_apicid = apicid;
1076 1073
1077 /* are we being called early in kernel startup? */ 1074 /* are we being called early in kernel startup? */
1078 if (x86_cpu_to_apicid_early_ptr) { 1075 if (early_per_cpu_ptr(x86_cpu_to_apicid)) {
1079 u16 *cpu_to_apicid = x86_cpu_to_apicid_early_ptr; 1076 u16 *cpu_to_apicid = early_per_cpu_ptr(x86_cpu_to_apicid);
1080 u16 *bios_cpu_apicid = x86_bios_cpu_apicid_early_ptr; 1077 u16 *bios_cpu_apicid = early_per_cpu_ptr(x86_bios_cpu_apicid);
1081 1078
1082 cpu_to_apicid[cpu] = apicid; 1079 cpu_to_apicid[cpu] = apicid;
1083 bios_cpu_apicid[cpu] = apicid; 1080 bios_cpu_apicid[cpu] = apicid;
@@ -1253,7 +1250,7 @@ __cpuinit int apic_is_clustered_box(void)
1253 if ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD) && !is_vsmp_box()) 1250 if ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD) && !is_vsmp_box())
1254 return 0; 1251 return 0;
1255 1252
1256 bios_cpu_apicid = x86_bios_cpu_apicid_early_ptr; 1253 bios_cpu_apicid = early_per_cpu_ptr(x86_bios_cpu_apicid);
1257 bitmap_zero(clustermap, NUM_APIC_CLUSTERS); 1254 bitmap_zero(clustermap, NUM_APIC_CLUSTERS);
1258 1255
1259 for (i = 0; i < NR_CPUS; i++) { 1256 for (i = 0; i < NR_CPUS; i++) {