Revert "Revert "powerhint: thermal: Support powerhint to change tmu control-temp""

This reverts commit e2da019e13.
Since the temperature getting struck at 10 degC b/192030129 has been fixed,
reenable dynamic Tj thresholds.

Bug: 202736847
Test: build and boot on device
Change-Id: I53c62595407ea156ee3aceef0d3723db46096b8f
This commit is contained in:
David Chao 2021-11-09 13:50:11 +08:00 committed by Wei Wang
parent 3cf3ce9386
commit eaaf1911d1

View file

@ -296,6 +296,86 @@
"adaptive"
],
"ResetOnInit": true
},
{
"Name": "BigControlTempSet",
"Path": "/dev/thermal/tz-by-name/BIG/trip_point_2_temp",
"Values": [
"90000",
"80000"
],
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "MidControlTempSet",
"Path": "/dev/thermal/tz-by-name/MID/trip_point_2_temp",
"Values": [
"90000",
"80000"
],
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "LittleControlTempSet",
"Path": "/dev/thermal/tz-by-name/LITTLE/trip_point_2_temp",
"Values": [
"90000",
"80000"
],
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "G3dControlTempSet",
"Path": "/dev/thermal/tz-by-name/G3D/trip_point_2_temp",
"Values": [
"90000",
"80000"
],
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "BigSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/BIG/trip_point_1_temp",
"Values": [
"70000",
"60000"
],
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "MidSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/MID/trip_point_1_temp",
"Values": [
"70000",
"60000"
],
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "LittleSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/LITTLE/trip_point_1_temp",
"Values": [
"70000",
"60000"
],
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "G3dSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/G3D/trip_point_1_temp",
"Values": [
"70000",
"60000"
],
"DefaultIndex": 0,
"ResetOnInit": false
}
],
"Actions": [
@ -1122,6 +1202,54 @@
"Duration": 0,
"Value": "400000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE",
"Node": "BigControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE",
"Node": "MidControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE",
"Node": "LittleControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE",
"Node": "G3dControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE",
"Node": "BigSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE",
"Node": "MidSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE",
"Node": "LittleSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE",
"Node": "G3dSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "FACE_UNLOCK_BOOST",
"Node": "CPUBigClusterMaxFreq",