• Rafael J. Wysocki's avatar
    thermal: core: Drop trips_disabled bitmask · 95021088
    Rafael J. Wysocki authored
    After recent changes, thermal_zone_get_trip() cannot fail, as invoked
    from thermal_zone_device_register_with_trips(), so the only role of
    the trips_disabled bitmask is struct thermal_zone_device is to make
    handle_thermal_trip() skip trip points whose temperature was initially
    zero.  However, since the unit of temperature in the thermal core is
    millicelsius, zero may very well be a valid temperature value at least
    in some usage scenarios and the trip temperature may as well change
    later.  Thus there is no reason to permanently disable trip points
    with initial temperature equal to zero.
    
    Accordingly, drop the trips_disabled bitmask along with the code
    related to it.
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    Tested-by: default avatarIdo Schimmel <idosch@nvidia.com>
    Acked-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
    95021088
thermal_core.c 39.9 KB