diff options
author | Ingo Molnar <mingo@kernel.org> | 2012-05-09 07:31:47 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-05-09 07:32:35 -0400 |
commit | ad7687dde8780a0d618a3e3b5a62bb383696fc22 (patch) | |
tree | 0197bfeda05d8c903604b348a48fe7d0caa705ca | |
parent | 0acbb440f06302058e1515861dd534594521e892 (diff) |
x86/numa: Check for nonsensical topologies on real hw as well
Instead of only checking nonsensical topologies on numa-emu, do it
on real hardware as well, and print a warning.
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Tejun Heo <tj@kernel.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: x86@kernel.org
Link: http://lkml.kernel.org/n/tip-re15l0jqjtpz709oxozt2zoh@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/kernel/smpboot.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index edfd03a9e390..7c53d96d44ab 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -337,10 +337,10 @@ void __cpuinit set_cpu_sibling_map(int cpu) | |||
337 | for_each_cpu(i, cpu_sibling_setup_mask) { | 337 | for_each_cpu(i, cpu_sibling_setup_mask) { |
338 | struct cpuinfo_x86 *o = &cpu_data(i); | 338 | struct cpuinfo_x86 *o = &cpu_data(i); |
339 | 339 | ||
340 | #ifdef CONFIG_NUMA_EMU | 340 | if (cpu_to_node(cpu) != cpu_to_node(i)) { |
341 | if (cpu_to_node(cpu) != cpu_to_node(i)) | 341 | WARN_ONCE(1, "sched: CPU #%d's thread-sibling CPU #%d not on the same node! [node %d != %d]. Ignoring sibling dependency.\n", cpu, i, cpu_to_node(cpu), cpu_to_node(i)); |
342 | continue; | 342 | continue; |
343 | #endif | 343 | } |
344 | 344 | ||
345 | if (cpu_has(c, X86_FEATURE_TOPOEXT)) { | 345 | if (cpu_has(c, X86_FEATURE_TOPOEXT)) { |
346 | if (c->phys_proc_id == o->phys_proc_id && | 346 | if (c->phys_proc_id == o->phys_proc_id && |
@@ -365,10 +365,10 @@ void __cpuinit set_cpu_sibling_map(int cpu) | |||
365 | } | 365 | } |
366 | 366 | ||
367 | for_each_cpu(i, cpu_sibling_setup_mask) { | 367 | for_each_cpu(i, cpu_sibling_setup_mask) { |
368 | #ifdef CONFIG_NUMA_EMU | 368 | if (cpu_to_node(cpu) != cpu_to_node(i)) { |
369 | if (cpu_to_node(cpu) != cpu_to_node(i)) | 369 | WARN_ONCE(1, "sched: CPU #%d's core-sibling CPU #%d not on the same node! [node %d != %d]. Ignoring sibling dependency.\n", cpu, i, cpu_to_node(cpu), cpu_to_node(i)); |
370 | continue; | 370 | continue; |
371 | #endif | 371 | } |
372 | 372 | ||
373 | if (per_cpu(cpu_llc_id, cpu) != BAD_APICID && | 373 | if (per_cpu(cpu_llc_id, cpu) != BAD_APICID && |
374 | per_cpu(cpu_llc_id, cpu) == per_cpu(cpu_llc_id, i)) { | 374 | per_cpu(cpu_llc_id, cpu) == per_cpu(cpu_llc_id, i)) { |