• Rafael J. Wysocki's avatar
    thermal: gov_bang_bang: Fix possible cooling device state ping-pong · 54d94009
    Rafael J. Wysocki authored
    The current behavior of thermal_zone_trip_update() in the bang-bang
    thermal governor may be problematic for trip points with 0 hysteresis,
    because when the zone temperature reaches the trip temperature and
    stays there, it will then cause the cooling device go "on" and "off"
    alternately, which is not desirable.
    
    Address this by requiring the zone temperature to actually fall below
    trip->temperature - trip->hysteresis for the cooling device to go off.
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    54d94009
gov_bang_bang.c 3.29 KB