ANDROID: thermal: Add a vendor hook for thermal throttle update
Commit 602c233f added a conditional for ops->get_trip_temp(). In the original code, ops->get_trip_temp() is called unconditionally. So delete the conditional to fix it. At the same time, modify the comment of enable. Actually, IPA is always enable, but sometimes it needs to be disabled for a while. Making 'enable' true or false, IPA can be enabled or disabled by user requirement. When the 'override' turns to false from true and current temperature is below the switch_on_temp(means 'update' is false), the cooling device state has not changed, also the power could not be updated to the maximum power. So add a vendor hook to renew the 'update' value, so that the cooling device can be updated. Fixes: 602c233f ("ANDROID: thermal: Add a flag for vendor hook enable_thermal_power_throttle") Bug: 271370056 Signed-off-by:Di Shen <di.shen@unisoc.com> Change-Id: I43191926f8da9016fe76d7cb78639b1cbd89c53e
Loading
Please sign in to comment