x86: don't call MP_processor_info for disabled cpu (64bit)
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
86c9835b46
commit
8ccab29ca8
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue