powerhal: add uclamp_threshold and reduce_prefer_idle node

we need disable uclamp_threshold and reduce_prefer_idle
under launch scenarios.

Bug: 232593932
Test: build pass
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I4b1f1fa04ee7c89f25500df74db49ad2fb67b2cb
This commit is contained in:
chungkai 2022-05-20 05:16:36 +00:00 committed by TreeHugger Robot
parent 9890703eea
commit a51ef227dc
2 changed files with 60 additions and 0 deletions

View file

@ -112,6 +112,24 @@
],
"ResetOnInit": true
},
{
"Name": "UClampThreshold",
"Path": "/proc/vendor_sched/uclamp_threshold",
"Values": [
"0",
"8"
],
"ResetOnInit": true
},
{
"Name": "ReduceRreferIdle",
"Path": "/proc/vendor_sched/reduce_prefer_idle",
"Values": [
"0",
"1"
],
"ResetOnInit": true
},
{
"Name": "CPUUtilThreshold",
"Path": "/proc/vendor_sched/util_threshold",
@ -517,6 +535,18 @@
"Duration": 5000,
"Value": "85"
},
{
"PowerHint": "LAUNCH",
"Node": "UClampThreshold",
"Duration": 5000,
"Value": "0"
},
{
"PowerHint": "LAUNCH",
"Node": "ReduceRreferIdle",
"Duration": 5000,
"Value": "0"
},
{
"PowerHint": "LAUNCH_120FPS",
"Node": "SFUClampBoost",

View file

@ -112,6 +112,24 @@
],
"ResetOnInit": true
},
{
"Name": "UClampThreshold",
"Path": "/proc/vendor_sched/uclamp_threshold",
"Values": [
"0",
"8"
],
"ResetOnInit": true
},
{
"Name": "ReduceRreferIdle",
"Path": "/proc/vendor_sched/reduce_prefer_idle",
"Values": [
"0",
"1"
],
"ResetOnInit": true
},
{
"Name": "CPUUtilThreshold",
"Path": "/proc/vendor_sched/util_threshold",
@ -517,6 +535,18 @@
"Duration": 5000,
"Value": "85"
},
{
"PowerHint": "LAUNCH",
"Node": "UClampThreshold",
"Duration": 5000,
"Value": "0"
},
{
"PowerHint": "LAUNCH",
"Node": "ReduceRreferIdle",
"Duration": 5000,
"Value": "0"
},
{
"PowerHint": "LAUNCH",
"Node": "FGPreferIdle",