Date: Thu, 23 Jul 2026 10:01:05 +0000 From: Olivier Certner <olce@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 0841ba990d08 - stable/14 - acpi_cpu(4): Remove unused 'acpi_cpu_disabled' boolean Message-ID: <6a61e661.3aec8.1bc5459b@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=0841ba990d0863dbc000c82bfd97daaf184b152d commit 0841ba990d0863dbc000c82bfd97daaf184b152d Author: Olivier Certner <olce@FreeBSD.org> AuthorDate: 2026-06-26 14:40:50 +0000 Commit: Olivier Certner <olce@FreeBSD.org> CommitDate: 2026-07-23 09:59:12 +0000 acpi_cpu(4): Remove unused 'acpi_cpu_disabled' boolean It is not used anywhere. Disabling acpi_cpu(4) can be done through the regular ACPI disable mechanism (using the 'debug.acpi.disabled' tunable, see acpi_disabled()). Reviewed by: emaste, obiwac Fixes: ac3ede5371af ("x86/xen: remove PVHv1 code") MFC after: 3 days Event: Halifax Hackathon 202606 Location: Dalhousie CS Faculty building Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57888 (cherry picked from commit 98a77972381c6bb5ceda375fd1db7dccb3a1c89e) --- sys/dev/acpica/acpi_cpu.c | 5 +---- sys/x86/include/init.h | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c index 63e17de1ff28..1ea045c4e812 100644 --- a/sys/dev/acpica/acpi_cpu.c +++ b/sys/dev/acpica/acpi_cpu.c @@ -139,9 +139,6 @@ struct acpi_cpu_device { #define CPUDEV_DEVICE_ID "ACPI0007" -/* Knob to disable acpi_cpu devices */ -bool acpi_cpu_disabled = false; - /* Platform hardware resource information. */ static uint32_t cpu_smi_cmd; /* Value to write to SMI_CMD. */ static uint8_t cpu_cst_cnt; /* Indicate we are _CST aware. */ @@ -237,7 +234,7 @@ acpi_cpu_probe(device_t dev) ACPI_STATUS status; ACPI_OBJECT_TYPE type; - if (acpi_disabled("cpu") || acpi_cpu_disabled) + if (acpi_disabled("cpu")) return (ENXIO); type = acpi_get_type(dev); if (type != ACPI_TYPE_PROCESSOR && type != ACPI_TYPE_DEVICE) diff --git a/sys/x86/include/init.h b/sys/x86/include/init.h index 9869bc1aeff0..4a7ed02e70ee 100644 --- a/sys/x86/include/init.h +++ b/sys/x86/include/init.h @@ -43,9 +43,6 @@ struct init_ops { extern struct init_ops init_ops; -/* Knob to disable acpi_cpu devices */ -extern bool acpi_cpu_disabled; - /* Knob to disable acpi_hpet device */ extern bool acpi_hpet_disabled;home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a61e661.3aec8.1bc5459b>
