aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic_64.c
diff options
context:
space:
mode:
authorMike Travis <travis@sgi.com>2008-01-30 07:33:14 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:33:14 -0500
commit693e3c560317577a29c625d89f6745d5c7cfd918 (patch)
tree2f8420f929e8cdb8167a57104b7938658cdd3a8f /arch/x86/kernel/apic_64.c
parent4dbf7af6442a9a882855bed0d999659ac413e3ac (diff)
x86: reduce memory and intra-node effects
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/apic_64.c')
-rw-r--r--arch/x86/kernel/apic_64.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c
index f9919c492699..85bd3d463cdf 100644
--- a/arch/x86/kernel/apic_64.c
+++ b/arch/x86/kernel/apic_64.c
@@ -1175,14 +1175,15 @@ __cpuinit int apic_is_clustered_box(void)
1175{ 1175{
1176 int i, clusters, zeros; 1176 int i, clusters, zeros;
1177 unsigned id; 1177 unsigned id;
1178 u16 *bios_cpu_apicid = x86_bios_cpu_apicid_early_ptr;
1178 DECLARE_BITMAP(clustermap, NUM_APIC_CLUSTERS); 1179 DECLARE_BITMAP(clustermap, NUM_APIC_CLUSTERS);
1179 1180
1180 bitmap_zero(clustermap, NUM_APIC_CLUSTERS); 1181 bitmap_zero(clustermap, NUM_APIC_CLUSTERS);
1181 1182
1182 for (i = 0; i < NR_CPUS; i++) { 1183 for (i = 0; i < NR_CPUS; i++) {
1183 /* are we being called early in kernel startup? */ 1184 /* are we being called early in kernel startup? */
1184 if (x86_bios_cpu_apicid_early_ptr) { 1185 if (bios_cpu_apicid) {
1185 id = ((u16 *)x86_bios_cpu_apicid_early_ptr)[i]; 1186 id = bios_cpu_apicid[i];
1186 } 1187 }
1187 else if (i < nr_cpu_ids) { 1188 else if (i < nr_cpu_ids) {
1188 if (cpu_present(i)) 1189 if (cpu_present(i))