Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/mp_machdep.c
Show First 20 Lines • Show All 563 Lines • ▼ Show 20 Lines | case ACPI_MADT_TYPE_GENERIC_INTERRUPT: | ||||
if (is_boot_cpu(intr->ArmMpidr)) | if (is_boot_cpu(intr->ArmMpidr)) | ||||
id = 0; | id = 0; | ||||
else | else | ||||
id = *cpuid; | id = *cpuid; | ||||
domain = 0; | domain = 0; | ||||
#ifdef NUMA | #ifdef NUMA | ||||
if (vm_ndomains > 1) | if (vm_ndomains > 1) | ||||
domain = acpi_pxm_get_cpu_locality(*cpuid); | domain = acpi_pxm_get_cpu_locality(intr->ArmMpidr); | ||||
#endif | #endif | ||||
if (start_cpu(id, intr->ArmMpidr, domain)) { | if (start_cpu(id, intr->ArmMpidr, domain)) { | ||||
MPASS(cpuid_to_pcpu[id] != NULL); | MPASS(cpuid_to_pcpu[id] != NULL); | ||||
cpuid_to_pcpu[id]->pc_acpi_id = intr->Uid; | cpuid_to_pcpu[id]->pc_acpi_id = intr->Uid; | ||||
/* | /* | ||||
* Don't increment for the boot CPU, its CPU ID is | * Don't increment for the boot CPU, its CPU ID is | ||||
* reserved. | * reserved. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 363 Lines • Show Last 20 Lines |