• Z
    Thermal: Introduce thermal_zone_trip_update() · 4ae46bef
    Zhang Rui 提交于
    This function is used to update the cooling state of
    all the cooling devices that are bound to an active trip point.
    
    This will be used for passive cooling as well, in the future patches.
    as both active and passive cooling can share the same algorithm,
    which is
    
    1. if the temperature is higher than a trip point,
       a. if the trend is THERMAL_TREND_RAISING, use higher cooling
          state for this trip point
       b. if the trend is THERMAL_TREND_DROPPING, use lower cooling
          state for this trip point
    
    2. if the temperature is lower than a trip point, use lower
       cooling state for this trip point.
    Signed-off-by: NZhang Rui <rui.zhang@intel.com>
    Reviewed-by: NRafael J. Wysocki <rjw@sisk.pl>
    Reviewed-by: NEduardo Valentin <eduardo.valentin@ti.com>
    4ae46bef
thermal_sys.c 40.9 KB