Watch
1
0
Fork
You've already forked android_device_oneplus_dre
0

dre: powerhint: Optimize for efficiency

Change-Id: Id8b224480a1d554035e7ee58cdbdc86b2a8c0eec
This commit is contained in:
Vivekachooz 2024-07-20 00:57:33 +05:30 committed by Nick Reuter
commit c1e4b8ba34

View file

@ -6,10 +6,10 @@
"Values": [
"9999999",
"1708800",
"1651200",
"1516800"
"576000",
"300000"
],
"DefaultIndex": 3,
"DefaultIndex": 0,
"ResetOnInit": true
},
{
@ -17,13 +17,14 @@
"Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq",
"Values": [
"9999999",
"1708800",
"1324800",
"1113600",
"691200",
"576000",
"300000"
],
"DefaultIndex": 5,
"DefaultIndex": 6,
"ResetOnInit": true
},
{
@ -53,7 +54,7 @@
"1900800",
"1516800"
],
"DefaultIndex": 3,
"DefaultIndex": 0,
"ResetOnInit": true
},
{
@ -61,10 +62,13 @@
"Path": "/sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq",
"Values": [
"9999999",
"2054400",
"1651200",
"1228800",
"691200",
"0"
],
"DefaultIndex": 5,
"ResetOnInit": true
},
{
@ -90,61 +94,43 @@
"Path": "/dev/cpuctl/top-app/cpu.uclamp.min",
"Values": [
"0",
"50",
"100"
"692",
"308",
"232",
"154",
"78"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{
"Name": "UclampTALatency",
"Path": "/dev/cpuctl/top-app/cpu.uclamp.latency_sensitive",
"Values": [
"1",
"0"
],
"ResetOnInit": true
},
{
"Name": "UclampFgMin",
"Path": "/dev/cpuctl/foreground/cpu.uclamp.min",
"Values": [
"0",
"100"
"159"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{
"Name": "GPUMaxFreq",
"Path": "/sys/class/kgsl/kgsl-3d0/max_pwrlevel",
"Path": "/sys/class/kgsl/kgsl-3d0/devfreq/max_freq",
"Values": [
"0",
"1",
"2"
"840000000",
"650000000",
"266000000"
],
"Comments": [
"0 => 840000000",
"1 => 650000000",
"2 => 266000000"
],
"DefaultIndex": 2,
"DefaultIndex": 0,
"ResetOnInit": true
},
{
"Name": "GPUMinFreq",
"Path": "/sys/class/kgsl/kgsl-3d0/min_pwrlevel",
"Path": "/sys/class/kgsl/kgsl-3d0/devfreq/min_freq",
"Values": [
"0",
"1",
"2",
"3"
],
"Comments": [
"0 => 840000000",
"1 => 650000000",
"2 => 490000000",
"3 => 266000000"
"840000000",
"650000000",
"266000000"
],
"ResetOnInit": true
},
@ -171,7 +157,7 @@
"Path": "/sys/class/kgsl/kgsl-3d0/idle_timer",
"Values": [
"10000",
"58"
"80"
],
"ResetOnInit": true
},
@ -216,9 +202,7 @@
"Path": "/sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/min_freq",
"Values": [
"7980",
"6881",
"5931",
"3879",
"5161",
"762"
],
"ResetOnInit": true
@ -283,6 +267,14 @@
],
"ResetOnInit": true
},
{
"Name": "DoubleTapToWake",
"Path": "/proc/touchpanel/double_tap_enable",
"Values": [
"1",
"0"
]
},
{
"Name": "PowerHALMainState",
"Path": "vendor.powerhal.state",
@ -300,14 +292,6 @@
""
],
"Type": "Property"
},
{
"Name": "DoubleTapToWake",
"Path": "/proc/touchpanel/double_tap_enable",
"Values": [
"1",
"0"
]
}
],
"Actions": [
@ -327,37 +311,36 @@
"PowerHint": "SUSTAINED_PERFORMANCE",
"Node": "CPULittleClusterMaxFreq",
"Duration": 0,
"Value": "1651200"
"Value": "1708800"
},
{
"PowerHint": "SUSTAINED_PERFORMANCE",
"Node": "GPUMaxFreq",
"Duration": 0,
"Value": "1"
"Value": "650000000"
},
{
"PowerHint": "INTERACTION",
"Type": "EndHint",
"Value": "DISABLE_TA_BOOST"
},
{
"PowerHint": "INTERACTION",
"Node": "CPUBigClusterMinFreq",
"Duration": 0,
"Value": "1651200"
"Value": "2054400"
},
{
"PowerHint": "INTERACTION",
"Node": "CPULittleClusterMinFreq",
"Duration": 0,
"Value": "1113600"
"Value": "1708800"
},
{
"PowerHint": "INTERACTION",
"Node": "UclampTAMin",
"Duration": 0,
"Value": "50"
},
{
"PowerHint": "INTERACTION",
"Node": "UclampTALatency",
"Duration": 0,
"Value": "1"
"Value": "78"
},
{
"PowerHint": "INTERACTION",
@ -381,7 +364,7 @@
"PowerHint": "INTERACTION",
"Node": "CPUBWMinFreq",
"Duration": 0,
"Value": "7980"
"Value": "5161"
},
{
"PowerHint": "INTERACTION",
@ -444,16 +427,9 @@
"Value": "20000"
},
{
"PowerHint": "INTERACTIVE",
"Node": "SchedBusyHystNs",
"Duration": 0,
"Value": "3000000"
},
{
"PowerHint": "INTERACTIVE",
"Node": "SchedBusyHystEnableCPUs",
"Duration": 0,
"Value": "15"
"PowerHint": "LAUNCH",
"Type": "EndHint",
"Value": "DISABLE_TA_BOOST"
},
{
"PowerHint": "LAUNCH",
@ -476,14 +452,14 @@
{
"PowerHint": "LAUNCH",
"Node": "UclampTAMin",
"Duration": 3000,
"Value": "50"
"Duration": 5000,
"Value": "692"
},
{
"PowerHint": "LAUNCH",
"Node": "UclampFgMin",
"Duration": 3000,
"Value": "100"
"Duration": 5000,
"Value": "159"
},
{
"PowerHint": "LAUNCH",
@ -591,13 +567,13 @@
"PowerHint": "FIXED_PERFORMANCE",
"Node": "GPUMaxFreq",
"Duration": 0,
"Value": "0"
"Value": "840000000"
},
{
"PowerHint": "FIXED_PERFORMANCE",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "0"
"Value": "840000000"
},
{
"PowerHint": "EXPENSIVE_RENDERING",
@ -609,25 +585,13 @@
"PowerHint": "EXPENSIVE_RENDERING",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "1"
"Value": "650000000"
},
{
"PowerHint": "EXPENSIVE_RENDERING",
"Node": "GPUMaxFreq",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "Flipendo",
"Node": "CPULittleClusterMaxFreq",
"Duration": 0,
"Value": "1651200"
},
{
"PowerHint": "Flipendo",
"Node": "CPUBigClusterMaxFreq",
"Duration": 0,
"Value": "1516800"
"Value": "840000000"
},
{
"PowerHint": "DOUBLE_TAP_TO_WAKE",
@ -635,6 +599,34 @@
"Duration": 0,
"Value": "1"
},
{
"PowerHint": "DISABLE_TA_BOOST",
"Node": "UclampTAMin",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "DISPLAY_IDLE",
"Node": "CPULittleClusterMinFreq",
"Duration": 0,
"Value": "300000"
},
{
"PowerHint": "DISPLAY_IDLE",
"Node": "CPUBigClusterMinFreq",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "DISPLAY_IDLE",
"Type": "DoHint",
"Value": "DISABLE_TA_BOOST"
},
{
"PowerHint": "DISPLAY_IDLE",
"Type": "EndHint",
"Value": "INTERACTION"
},
{
"PowerHint": "DISPLAY_INACTIVE",
"Node": "CPULittleClusterMinFreq",