sm6375-common: powerhint: Set screen-off schedutil ratelimits

Use a more power-friendly rate limit configuration (2ms up/down)
to reduce power consumption a bit when the screen is off.

Power results during screen off GPS usage, measured by
Alex Naidis <alex.naidis@paranoidandroid.co> on SDM845:

Before:
392mW
93.5mA

After:
378.5mW
90.2mA

Co-authored-by: Alex Naidis <alex.naidis@paranoidandroid.co>
Change-Id: I1ec50702847a196e2f9366f71b3a5b9465c9a596
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
This commit is contained in:
Adithya R 2024-07-16 13:32:35 +05:30 committed by Anand S
parent ead9530aaf
commit d5b17cbe94
No known key found for this signature in database
GPG key ID: 3B2983FA448B3D61

View file

@ -26,6 +26,24 @@
"DefaultIndex": 5,
"ResetOnInit": true
},
{
"Name": "CPULittleClusterUpRateLimit",
"Path": "/sys/devices/system/cpu/cpu0/cpufreq/schedutil/up_rate_limit_us",
"Values": [
"500",
"2000"
],
"ResetOnInit": true
},
{
"Name": "CPULittleClusterDownRateLimit",
"Path": "/sys/devices/system/cpu/cpu0/cpufreq/schedutil/down_rate_limit_us",
"Values": [
"20000",
"2000"
],
"ResetOnInit": true
},
{
"Name": "CPUBigClusterMaxFreq",
"Path": "/sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq",
@ -49,6 +67,24 @@
],
"ResetOnInit": true
},
{
"Name": "CPUBigClusterUpRateLimit",
"Path": "/sys/devices/system/cpu/cpu6/cpufreq/schedutil/up_rate_limit_us",
"Values": [
"500",
"2000"
],
"ResetOnInit": true
},
{
"Name": "CPUBigClusterDownRateLimit",
"Path": "/sys/devices/system/cpu/cpu6/cpufreq/schedutil/down_rate_limit_us",
"Values": [
"20000",
"2000"
],
"ResetOnInit": true
},
{
"Name": "UclampTAMin",
"Path": "/dev/cpuctl/top-app/cpu.uclamp.min",
@ -446,6 +482,30 @@
"Duration": 0,
"Value": "7980"
},
{
"PowerHint": "INTERACTIVE",
"Node": "CPULittleClusterUpRateLimit",
"Duration": 0,
"Value": "500"
},
{
"PowerHint": "INTERACTIVE",
"Node": "CPULittleClusterDownRateLimit",
"Duration": 0,
"Value": "20000"
},
{
"PowerHint": "INTERACTIVE",
"Node": "CPUBigClusterUpRateLimit",
"Duration": 0,
"Value": "500"
},
{
"PowerHint": "INTERACTIVE",
"Node": "CPUBigClusterDownRateLimit",
"Duration": 0,
"Value": "20000"
},
{
"PowerHint": "INTERACTIVE",
"Node": "SchedBusyHystNs",