summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_thermal.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-03-05 18:06:31 +0000
committernjl <njl@FreeBSD.org>2004-03-05 18:06:31 +0000
commit27ea45097f8638a511feaef9e9a2475920c994fe (patch)
tree2874302a3c4cfb6a9ad4ee000e12486afb4ece7b /sys/dev/acpica/acpi_thermal.c
parente2aad13d33454593c5ca54eb83d844666f386031 (diff)
downloadFreeBSD-src-27ea45097f8638a511feaef9e9a2475920c994fe.zip
FreeBSD-src-27ea45097f8638a511feaef9e9a2475920c994fe.tar.gz
A user can set tz_requested via the hw.acpi.thermal.tzX.active sysctl.
The previous logic meant that if a user sets it to a minimal cooling value acpi_thermal will not use higher cooling levels. Reverse the logic so that the user requesting a level (say, 2) also gets 0 - 1 also. PR: kern/61592 Submitted by: Andrew Thompson <andy@fud.org.nz>
Diffstat (limited to 'sys/dev/acpica/acpi_thermal.c')
-rw-r--r--sys/dev/acpica/acpi_thermal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_thermal.c b/sys/dev/acpica/acpi_thermal.c
index d0efd74..c539a4e 100644
--- a/sys/dev/acpica/acpi_thermal.c
+++ b/sys/dev/acpica/acpi_thermal.c
@@ -449,7 +449,7 @@ acpi_tz_monitor(void *Context)
}
/* Handle user override of active mode */
- if (sc->tz_requested > newactive)
+ if (sc->tz_requested != TZ_ACTIVE_NONE && sc->tz_requested < newactive)
newactive = sc->tz_requested;
/* update temperature-related flags */
OpenPOWER on IntegriCloud