Thermal: Introduce thermal_zone_trip_update()
[deliverable/linux.git] / drivers / acpi / thermal.c
index 07cb2172bd093ea695cc1f88ee81259b614ef931..bd66bd28a43fd0885dfe42fc31efac2ef6d9137b 100644 (file)
@@ -716,9 +716,11 @@ static int thermal_get_trend(struct thermal_zone_device *thermal,
        if (thermal_get_trip_type(thermal, trip, &type))
                return -EINVAL;
 
-       /* Only PASSIVE trip points need TREND */
-       if (type != THERMAL_TRIP_PASSIVE)
-               return -EINVAL;
+       if (type == THERMAL_TRIP_ACTIVE) {
+               /* aggressive active cooling */
+               *trend = THERMAL_TREND_RAISING;
+               return 0;
+       }
 
        /*
         * tz->temperature has already been updated by generic thermal layer,
This page took 0.025352 seconds and 5 git commands to generate.