]> git.baikalelectronics.ru Git - kernel.git/commit
x86: move init_cpu_to_node after get_smp_config
authorYinghai Lu <yhlu.kernel@gmail.com>
Thu, 3 Jul 2008 01:53:44 +0000 (18:53 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 11:16:23 +0000 (13:16 +0200)
commit1b7d3b86ecb3bce5985c2f912e4ffe6f573d939d
treeb47b506e989a31e8a14536706b0ef3b14333be2e
parentc688faed8f51c9439dbd8293142dd665d568fc12
x86: move init_cpu_to_node after get_smp_config

when acpi=off, cpu_to_apicid is ready after get_smp_config
so need to move init_cpu_to_node after it.

otherwise, we will get wrong cpu->node mapping, and it will rely on
amd_detect_cmp() to correct it - but that is too late as
setup_per_cpu_data is already called before that so  we will get
per_cpu_data on the wrong node.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/setup.c