sdm660-common: power-libperfmgr: Use sysctl to control energy aware feature

Energy aware feature control is previously done through debugfs,
which will be deprecated, so move the control to sysctl.

Bug: 141333728
Test: function works as expected
Change-Id: I431b3113aa6bcde48b4b7cf9b2097666b948ad80
[clarencelol: These stuffs improve performance significantly]
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
Rick Yiu 2021-11-04 23:12:45 +08:00 committed by pix106
parent 8d4c63cf3d
commit a123a5dda9

View file

@ -198,6 +198,15 @@
],
"ResetOnInit": true
},
{
"Name": "EnergyAware",
"Path": "/proc/sys/kernel/sched_energy_aware",
"Values": [
"0",
"1"
],
"ResetOnInit": true
},
{
"Name": "PowerHALMainState",
"Path": "vendor.powerhal.state",
@ -316,6 +325,12 @@
"Duration": 0,
"Value": "3879"
},
{
"PowerHint": "LAUNCH",
"Node": "EnergyAware",
"Duration": 3000,
"Value": "0"
},
{
"PowerHint": "LAUNCH",
"Node": "CPUBigClusterMaxFreq",
@ -376,6 +391,12 @@
"Duration": 3000,
"Value": "10000"
},
{
"PowerHint": "CAMERA_LAUNCH",
"Node": "EnergyAware",
"Duration": 1000,
"Value": "0"
},
{
"PowerHint": "CAMERA_LAUNCH",
"Node": "CPUBigClusterMaxFreq",
@ -424,6 +445,12 @@
"Duration": 0,
"Value": "1"
},
{
"PowerHint": "CAMERA_SHOT",
"Node": "EnergyAware",
"Duration": 1000,
"Value": "0"
},
{
"PowerHint": "CAMERA_SHOT",
"Node": "CPUBigClusterMaxFreq",