Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160546550
D57618.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
890 B
Referenced Files
None
Subscribers
None
D57618.diff
View Options
diff --git a/sys/dev/acpica/acpi_thermal.c b/sys/dev/acpica/acpi_thermal.c
--- a/sys/dev/acpica/acpi_thermal.c
+++ b/sys/dev/acpica/acpi_thermal.c
@@ -121,6 +121,7 @@
int tz_cooling_active;
int tz_cooling_updated;
int tz_cooling_saved_freq;
+ bool tz_eval_temp_failed;
};
#define TZ_ACTIVE_LEVEL(act) ((act) >= 0 ? (act) : TZ_NUMLEVELS)
@@ -474,6 +475,8 @@
ACPI_STATUS status;
ACPI_FUNCTION_NAME ("acpi_tz_get_temperature");
+ if (sc->tz_eval_temp_failed)
+ return (FALSE);
/* Evaluate the thermal zone's _TMP method. */
status = acpi_GetInteger(sc->tz_handle, acpi_tz_tmp_name, &temp);
@@ -481,6 +484,7 @@
ACPI_VPRINT(sc->tz_dev, acpi_device_get_parent_softc(sc->tz_dev),
"error fetching current temperature -- %s\n",
AcpiFormatException(status));
+ sc->tz_eval_temp_failed = true;
return (FALSE);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jun 26, 1:25 PM (6 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34054819
Default Alt Text
D57618.diff (890 B)
Attached To
Mode
D57618: acpi: Disable temperature evaluation while failing
Attached
Detach File
Event Timeline
Log In to Comment