Allow CPUs to be missing in the Arm PMU driver

To support running on some emulators we allow CPU start to fail if the
CPU we are starting is not present. The PMU driver will then check if
the CPU is present and fail to attach if any are missing.

To allow the PMU to be used in such an environment don't fail to attach
when a CPU is missing.

Sponsored by: Arm Ltd
This commit is contained in:
Andrew Turner 2022-12-19 13:51:48 +00:00
parent f9ccec823a
commit 2eee99f794

View File

@ -82,7 +82,6 @@ madt_handler(ACPI_SUBTABLE_HEADER *entry, void *arg)
/* pcpu not found. */
device_printf(sc->dev, "MADT: could not find pcpu, "
"ArmMpidr %lx\n", intr->ArmMpidr);
ctx->error = ENODEV;
return;
}