diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2001-10-29 18:09:43 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2001-10-29 18:09:43 +0000 |
commit | e9dce04d13c8dcb09cc154cd0254be5301e94569 (patch) | |
tree | 9cbed4bd3b830aba6d1e01ea1a09e02b2e3c36fe /sys/dev/acpica/acpi.c | |
parent | 80308906f06430dec4bf88134d9deaa5a55ce8b5 (diff) | |
download | FreeBSD-src-e9dce04d13c8dcb09cc154cd0254be5301e94569.zip FreeBSD-src-e9dce04d13c8dcb09cc154cd0254be5301e94569.tar.gz |
Some small improvements of ACPI thermal driver.
- Give a guaranteed minimum cooling run time to avoid too frequent
cooling system On/Off switching. The minimum cooling run time can be
specified by hw.acpi.thermal.min_runtime in sec.
- Refine message printing (_AC-1 -> NONE).
- Add verbose mode enable/disable capability by hw.acpi.verbose in bool.
Reviewed by: acpi-jp@ folks
Diffstat (limited to 'sys/dev/acpica/acpi.c')
-rw-r--r-- | sys/dev/acpica/acpi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 60e20f9..f930e02 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -379,6 +379,11 @@ acpi_attach(device_t dev) SYSCTL_ADD_PROC(&sc->acpi_sysctl_ctx, SYSCTL_CHILDREN(sc->acpi_sysctl_tree), OID_AUTO, "suspend_state", CTLTYPE_STRING | CTLFLAG_RW, &sc->acpi_suspend_sx, 0, acpi_sleep_state_sysctl, "A", ""); + SYSCTL_ADD_INT(&sc->acpi_sysctl_ctx, SYSCTL_CHILDREN(sc->acpi_sysctl_tree), + OID_AUTO, "verbose", CTLFLAG_RD | CTLFLAG_RW, + &sc->acpi_verbose, 0, "verbose mode"); + if (bootverbose) + sc->acpi_verbose = 1; /* * Dispatch the default sleep state to devices. |