aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/mpparse.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-06-03 13:25:54 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-04 06:01:06 -0400
commitab530e1f781da4d704892daab2bdd568f473687d (patch)
tree38fd2364225dd8ba8051c77df25457cdaa96833f /arch/x86/kernel/mpparse.c
parentf19dc2f22a180dde3f9e611b76c73f5390c11ecd (diff)
x86: early check if a system is numaq
so we could fall back to one node numa. Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/mpparse.c')
-rw-r--r--arch/x86/kernel/mpparse.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c
index 8898aa49079d..b4a950da2f97 100644
--- a/arch/x86/kernel/mpparse.c
+++ b/arch/x86/kernel/mpparse.c
@@ -70,7 +70,10 @@ static void __cpuinit MP_processor_info(struct mpc_config_processor *m)
70 return; 70 return;
71 } 71 }
72#ifdef CONFIG_X86_NUMAQ 72#ifdef CONFIG_X86_NUMAQ
73 apicid = mpc_apic_id(m, translation_table[mpc_record]); 73 if (found_numaq)
74 apicid = mpc_apic_id(m, translation_table[mpc_record]);
75 else
76 apicid = m->mpc_apicid;
74#else 77#else
75 apicid = m->mpc_apicid; 78 apicid = m->mpc_apicid;
76#endif 79#endif
@@ -91,7 +94,8 @@ static void __init MP_bus_info(struct mpc_config_bus *m)
91 str[6] = 0; 94 str[6] = 0;
92 95
93#ifdef CONFIG_X86_NUMAQ 96#ifdef CONFIG_X86_NUMAQ
94 mpc_oem_bus_info(m, str, translation_table[mpc_record]); 97 if (found_numaq)
98 mpc_oem_bus_info(m, str, translation_table[mpc_record]);
95#else 99#else
96 printk(KERN_INFO "Bus #%d is %s\n", m->mpc_busid, str); 100 printk(KERN_INFO "Bus #%d is %s\n", m->mpc_busid, str);
97#endif 101#endif
@@ -112,7 +116,8 @@ static void __init MP_bus_info(struct mpc_config_bus *m)
112#endif 116#endif
113 } else if (strncmp(str, BUSTYPE_PCI, sizeof(BUSTYPE_PCI) - 1) == 0) { 117 } else if (strncmp(str, BUSTYPE_PCI, sizeof(BUSTYPE_PCI) - 1) == 0) {
114#ifdef CONFIG_X86_NUMAQ 118#ifdef CONFIG_X86_NUMAQ
115 mpc_oem_pci_bus(m, translation_table[mpc_record]); 119 if (found_numaq)
120 mpc_oem_pci_bus(m, translation_table[mpc_record]);
116#endif 121#endif
117 clear_bit(m->mpc_busid, mp_bus_not_pci); 122 clear_bit(m->mpc_busid, mp_bus_not_pci);
118#if defined(CONFIG_EISA) || defined (CONFIG_MCA) 123#if defined(CONFIG_EISA) || defined (CONFIG_MCA)
@@ -321,6 +326,9 @@ static inline void mps_oem_check(struct mp_config_table *mpc, char *oem,
321{ 326{
322 if (strncmp(oem, "IBM NUMA", 8)) 327 if (strncmp(oem, "IBM NUMA", 8))
323 printk("Warning! May not be a NUMA-Q system!\n"); 328 printk("Warning! May not be a NUMA-Q system!\n");
329 else
330 found_numaq = 1;
331
324 if (mpc->mpc_oemptr) 332 if (mpc->mpc_oemptr)
325 smp_read_mpc_oem((struct mp_config_oemtable *)mpc->mpc_oemptr, 333 smp_read_mpc_oem((struct mp_config_oemtable *)mpc->mpc_oemptr,
326 mpc->mpc_oemsize); 334 mpc->mpc_oemsize);