Commit 602c233f authored by Di Shen's avatar Di Shen Committed by di shen
Browse files

ANDROID: thermal: Add a flag for vendor hook enable_thermal_power_throt-


tle

Taking in account of SoC's surface temperature, we have to use more str-
ict temperature control to make IPA can monitor and mitigate temperature
control earlier and faster. It means power budget will be overridden wi-
th a more strict one(user power budget). So add an override flag.

It is not the same as "enable" flag. Originally, whether the IPA turns
on or not depends on whether the temperature exceeds switch_on_temp,the-
refore add "enable" flag.

About enable flag:
true: enable IPA control when temperature >= swtich_on_temp
false: disable IPA control when temperature < switch_on_temp

Now in order not to affect the original logic, add flag "override".

About override flag:
true: power budget is overridden by user power budget, and then thermal
power throttle takes action even if temperature < switch_on_temp.
false: power budget is not overridden, there's no other thermal requirm-
ent. Normal temperature control.

Bug: 209386157

Signed-off-by: default avatarDi Shen <di.shen@unisoc.com>
Change-Id: Ia9bbded636809d89d90a330df302391a5f4b3f5a
parent 88796505
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment