Page MenuHomeFreeBSD

D57618.diff
No OneTemporary

D57618.diff

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

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)

Event Timeline