git: 2eee99f79480 - main - Allow CPUs to be missing in the Arm PMU driver
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 22 Dec 2022 14:37:59 UTC
The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=2eee99f794800124a7cc288763fcd8f8ae35935b commit 2eee99f794800124a7cc288763fcd8f8ae35935b Author: Andrew Turner <andrew@FreeBSD.org> AuthorDate: 2022-12-19 13:51:48 +0000 Commit: Andrew Turner <andrew@FreeBSD.org> CommitDate: 2022-12-22 14:24:40 +0000 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 --- sys/arm/arm/pmu_acpi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/arm/arm/pmu_acpi.c b/sys/arm/arm/pmu_acpi.c index 8812ac7b3af4..f11eacb5059d 100644 --- a/sys/arm/arm/pmu_acpi.c +++ b/sys/arm/arm/pmu_acpi.c @@ -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; }