diff options
| author | Olivier Certner <olce@FreeBSD.org> | 2026-05-07 15:59:37 +0000 |
|---|---|---|
| committer | Olivier Certner <olce@FreeBSD.org> | 2026-05-13 12:38:24 +0000 |
| commit | 37c59fdc3b4d25304982a4d39931da5c2ec4c2e6 (patch) | |
| tree | e9c6137f22b98cbb0d68d042b39a175e8df26afe | |
| parent | f56201cee3e8f90dd17ec287b43997983d23fdfe (diff) | |
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
| -rw-r--r-- | sys/dev/acpica/acpi_spmc.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |
