sdm660-common: power-libperfmgr: Rework CPU freq

* Let interaction runs on the most efficient freq for both big and little cluster

Signed-off-by: Clarence K <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
Clarence K 2022-07-19 14:14:17 +08:00 committed by pix106
parent b87e02c9f9
commit ddf80f0181

View file

@ -5,12 +5,7 @@
"Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq", "Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq",
"Values": [ "Values": [
"9999999", "9999999",
"1747200", "1113600"
"1401600",
"902400",
"1113600",
"1536000",
"1843200"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
@ -20,9 +15,6 @@
"Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq", "Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq",
"Values": [ "Values": [
"9999999", "9999999",
"1536000",
"1401600",
"902400",
"1113600", "1113600",
"633600" "633600"
], ],
@ -33,12 +25,7 @@
"Path": "/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq", "Path": "/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq",
"Values": [ "Values": [
"9999999", "9999999",
"1747200", "1401600"
"1113600",
"1401600",
"1958400",
"2150400",
"2208000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
@ -48,9 +35,6 @@
"Path": "/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq", "Path": "/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq",
"Values": [ "Values": [
"9999999", "9999999",
"1747200",
"1401600",
"0",
"1113600" "1113600"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -269,13 +253,13 @@
"PowerHint": "INTERACTION", "PowerHint": "INTERACTION",
"Node": "CPUBigClusterMinFreq", "Node": "CPUBigClusterMinFreq",
"Duration": 0, "Duration": 0,
"Value": "1401600" "Value": "1113600"
}, },
{ {
"PowerHint": "INTERACTION", "PowerHint": "INTERACTION",
"Node": "CPULittleClusterMinFreq", "Node": "CPULittleClusterMinFreq",
"Duration": 0, "Duration": 0,
"Value": "1401600" "Value": "633600"
}, },
{ {
"PowerHint": "INTERACTION", "PowerHint": "INTERACTION",
@ -461,13 +445,13 @@
"PowerHint": "AUDIO_LAUNCH", "PowerHint": "AUDIO_LAUNCH",
"Node": "CPUBigClusterMinFreq", "Node": "CPUBigClusterMinFreq",
"Duration": 0, "Duration": 0,
"Value": "1401600" "Value": "1113600"
}, },
{ {
"PowerHint": "AUDIO_LAUNCH", "PowerHint": "AUDIO_LAUNCH",
"Node": "CPUBigClusterMaxFreq", "Node": "CPUBigClusterMaxFreq",
"Duration": 0, "Duration": 0,
"Value": "9999999" "Value": "1401600"
}, },
{ {
"PowerHint": "AUDIO_STREAMING_LOW_LATENCY", "PowerHint": "AUDIO_STREAMING_LOW_LATENCY",
@ -503,7 +487,7 @@
"PowerHint": "Flipendo", "PowerHint": "Flipendo",
"Node": "CPULittleClusterMaxFreq", "Node": "CPULittleClusterMaxFreq",
"Duration": 0, "Duration": 0,
"Value": "1401600" "Value": "1113600"
}, },
{ {
"PowerHint": "Flipendo", "PowerHint": "Flipendo",