aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/thermal.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/thermal.c')
-rw-r--r--drivers/acpi/thermal.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
index 07cb2172bd09..bd66bd28a43f 100644
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
@@ -716,9 +716,11 @@ static int thermal_get_trend(struct thermal_zone_device *thermal,
716 if (thermal_get_trip_type(thermal, trip, &type)) 716 if (thermal_get_trip_type(thermal, trip, &type))
717 return -EINVAL; 717 return -EINVAL;
718 718
719 /* Only PASSIVE trip points need TREND */ 719 if (type == THERMAL_TRIP_ACTIVE) {
720 if (type != THERMAL_TRIP_PASSIVE) 720 /* aggressive active cooling */
721 return -EINVAL; 721 *trend = THERMAL_TREND_RAISING;
722 return 0;
723 }
722 724
723 /* 725 /*
724 * tz->temperature has already been updated by generic thermal layer, 726 * tz->temperature has already been updated by generic thermal layer,