mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 01:34:14 +08:00
x86: don't call MP_processor_info for disabled cpu
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
2df2972619
commit
987dd2d4d4
@ -895,6 +895,10 @@ void __cpuinit mp_register_lapic (u8 id, u8 enabled)
|
||||
id, MAX_APICS);
|
||||
return;
|
||||
}
|
||||
if (!enabled) {
|
||||
++disabled_cpus;
|
||||
return;
|
||||
}
|
||||
|
||||
if (id == boot_cpu_physical_apicid)
|
||||
boot_cpu = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user