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
This commit is contained in:
Olivier Certner
2026-05-07 17:59:37 +02:00
parent f56201cee3
commit 37c59fdc3b
+6
View File
@@ -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;