提交 8ccab29c 编写于 作者: A Alexey Starikovskiy 提交者: Ingo Molnar

x86: don't call MP_processor_info for disabled cpu (64bit)

Signed-off-by: NAlexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 86c9835b
......@@ -678,6 +678,10 @@ void __cpuinit mp_register_lapic(u8 id, u8 enabled)
struct mpc_config_processor processor;
int boot_cpu = 0;
if (!enabled) {
++disabled_cpus;
return;
}
if (id == boot_cpu_physical_apicid)
boot_cpu = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册