1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

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>
This commit is contained in:
Nate Lawson 2004-03-05 18:06:31 +00:00
parent 16df17d062
commit 9db195a8d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126662

View File

@ -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 */