git: 37c59fdc3b4d - main - acpi_spmc(4): Add a sysctl knob to request verbosity
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 May 2026 12:39:59 UTC
The branch main has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=37c59fdc3b4d25304982a4d39931da5c2ec4c2e6
commit 37c59fdc3b4d25304982a4d39931da5c2ec4c2e6
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-05-07 15:59:37 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-05-13 12:38:24 +0000
acpi_spmc(4): Add a sysctl knob to request verbosity
The driver will be more verbose on this knob being non-zero or
'bootverbose' being set. The corresponding variable is typed as an
integer to leave room for expansion. To be used in subsequent commits.
Reviewed by: obiwac
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56875
---
sys/dev/acpica/acpi_spmc.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sys/dev/acpica/acpi_spmc.c b/sys/dev/acpica/acpi_spmc.c
index 96050705c5e5..d67ac2770f7e 100644
--- a/sys/dev/acpica/acpi_spmc.c
+++ b/sys/dev/acpica/acpi_spmc.c
@@ -200,6 +200,12 @@ SYSCTL_INT(_debug_acpi_spmc, OID_AUTO, intel_dsm_revision, CTLFLAG_RW,
SYSCTL_INT(_debug_acpi_spmc, OID_AUTO, amd_dsm_revision, CTLFLAG_RW,
&dsm_amd.revision, 0, "Revision to use when evaluating AMD SPMC DSMs");
+static int verbose;
+SYSCTL_INT(_debug_acpi_spmc, OID_AUTO, verbose, CTLFLAG_RW,
+ &verbose, 0, "acpi_spmc(4) verbosity");
+
+#define VERBOSE() (verbose || bootverbose)
+
struct acpi_spmc_constraint {
bool enabled;
char *name;