|
@@ -368,7 +368,7 @@ static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag)
|
|
int valid = 0;
|
|
int valid = 0;
|
|
int i;
|
|
int i;
|
|
|
|
|
|
- /* Critical Shutdown (required) */
|
|
|
|
|
|
+ /* Critical Shutdown */
|
|
if (flag & ACPI_TRIPS_CRITICAL) {
|
|
if (flag & ACPI_TRIPS_CRITICAL) {
|
|
status = acpi_evaluate_integer(tz->device->handle,
|
|
status = acpi_evaluate_integer(tz->device->handle,
|
|
"_CRT", NULL, &tmp);
|
|
"_CRT", NULL, &tmp);
|
|
@@ -379,17 +379,19 @@ static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag)
|
|
* Below zero (Celsius) values clearly aren't right for sure..
|
|
* Below zero (Celsius) values clearly aren't right for sure..
|
|
* ... so lets discard those as invalid.
|
|
* ... so lets discard those as invalid.
|
|
*/
|
|
*/
|
|
- if (ACPI_FAILURE(status) ||
|
|
|
|
- tz->trips.critical.temperature <= 2732) {
|
|
|
|
|
|
+ if (ACPI_FAILURE(status)) {
|
|
|
|
+ tz->trips.critical.flags.valid = 0;
|
|
|
|
+ ACPI_DEBUG_PRINT((ACPI_DB_INFO,
|
|
|
|
+ "No critical threshold\n"));
|
|
|
|
+ } else if (tmp <= 2732) {
|
|
|
|
+ printk(KERN_WARNING FW_BUG "Invalid critical threshold "
|
|
|
|
+ "(%llu)\n", tmp);
|
|
tz->trips.critical.flags.valid = 0;
|
|
tz->trips.critical.flags.valid = 0;
|
|
- ACPI_EXCEPTION((AE_INFO, status,
|
|
|
|
- "No or invalid critical threshold"));
|
|
|
|
- return -ENODEV;
|
|
|
|
} else {
|
|
} else {
|
|
tz->trips.critical.flags.valid = 1;
|
|
tz->trips.critical.flags.valid = 1;
|
|
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
|
|
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
|
|
- "Found critical threshold [%lu]\n",
|
|
|
|
- tz->trips.critical.temperature));
|
|
|
|
|
|
+ "Found critical threshold [%lu]\n",
|
|
|
|
+ tz->trips.critical.temperature));
|
|
}
|
|
}
|
|
if (tz->trips.critical.flags.valid == 1) {
|
|
if (tz->trips.critical.flags.valid == 1) {
|
|
if (crt == -1) {
|
|
if (crt == -1) {
|