Allow the user to override the current active cooling state if state
is currently TZ_ACTIVE_NONE. Submitted by: Andriy Gapon <avg at icyb.net.ua> Reviewed by: njl (mentor) Approved by: njl (mentor) Requested by: njl (mentor) MFC after: 3 days
This commit is contained in:
parent
6e1de64dca
commit
9e684e54fe
@ -528,7 +528,8 @@ acpi_tz_monitor(void *Context)
|
||||
}
|
||||
|
||||
/* Handle user override of active mode */
|
||||
if (sc->tz_requested != TZ_ACTIVE_NONE && sc->tz_requested < newactive)
|
||||
if (sc->tz_requested != TZ_ACTIVE_NONE && (newactive == TZ_ACTIVE_NONE
|
||||
|| sc->tz_requested < newactive))
|
||||
newactive = sc->tz_requested;
|
||||
|
||||
/* update temperature-related flags */
|
||||
|
Loading…
Reference in New Issue
Block a user