Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/x86/mp_x86.c
Show First 20 Lines • Show All 509 Lines • ▼ Show 20 Lines | topo_probe(void) | ||||
if (cpu_topo_probed) | if (cpu_topo_probed) | ||||
return; | return; | ||||
CPU_ZERO(&logical_cpus_mask); | CPU_ZERO(&logical_cpus_mask); | ||||
if (mp_ncpus <= 1) | if (mp_ncpus <= 1) | ||||
; /* nothing */ | ; /* nothing */ | ||||
else if (cpu_vendor_id == CPU_VENDOR_AMD) | else if (cpu_vendor_id == CPU_VENDOR_AMD || | ||||
cpu_vendor_id == CPU_VENDOR_HYGON) | |||||
kib: The indent is wrong, it should be +4 spaces for the continuation line. | |||||
puwen_hygon.cnAuthorUnsubmitted Done Inline ActionsThanks, will correct it. puwen_hygon.cn: Thanks, will correct it. | |||||
topo_probe_amd(); | topo_probe_amd(); | ||||
else if (cpu_vendor_id == CPU_VENDOR_INTEL) | else if (cpu_vendor_id == CPU_VENDOR_INTEL) | ||||
topo_probe_intel(); | topo_probe_intel(); | ||||
KASSERT(pkg_id_shift >= core_id_shift, | KASSERT(pkg_id_shift >= core_id_shift, | ||||
("bug in APIC topology discovery")); | ("bug in APIC topology discovery")); | ||||
nlayers = 0; | nlayers = 0; | ||||
▲ Show 20 Lines • Show All 1,318 Lines • Show Last 20 Lines |
The indent is wrong, it should be +4 spaces for the continuation line.