Disable auto prefer idle explictly for some conditions

In auto prefer idle mode, a task in top-app will be granted prefer
idle if it satisfied the conditions. So turn auto prefer idle off
if top-app prefer_idle is explictly disabled. Also turn auto prefer
off when other group enables prefer_idle explictly.

Bug: 236868627
Test: build pass
Change-Id: I539c3e65720e3496859bce9a752d13432b62a59a
This commit is contained in:
Rick Yiu 2024-04-11 07:57:11 +00:00
parent 81f54c3c80
commit 290188c349

View file

@ -212,6 +212,16 @@
],
"ResetOnInit": true
},
{
"Name": "AutoPreferIdle",
"Path": "/proc/vendor_sched/auto_prefer_idle",
"Values": [
"0",
"1"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{
"Name": "BigClusterPowerDownTargetResidency",
"Path": "/sys/devices/platform/cpupm/cpupm/cpd_cl2_target_residency",
@ -854,6 +864,12 @@
"Duration": 5000,
"Value": "0"
},
{
"PowerHint": "LAUNCH",
"Node": "AutoPreferIdle",
"Duration": 5000,
"Value": "0"
},
{
"PowerHint": "LAUNCH_GPU",
"Node": "GPUDvfsPeriod",
@ -1073,6 +1089,12 @@
"Duration": 2000,
"Value": "1"
},
{
"PowerHint": "LAUNCH_EXTEND",
"Node": "AutoPreferIdle",
"Duration": 2000,
"Value": "0"
},
{
"PowerHint": "LAUNCH_PMU",
"Node": "PMU_POLL",
@ -1085,6 +1107,12 @@
"Duration": 5000,
"Value": "0"
},
{
"PowerHint": "DISPLAY_CHANGE",
"Node": "AutoPreferIdle",
"Duration": 5000,
"Value": "0"
},
{
"PowerHint": "DISPLAY_CHANGE_GPU",
"Node": "GPUDvfsPeriod",
@ -1215,6 +1243,12 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "DISPLAY_INACTIVE",
"Node": "AutoPreferIdle",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "DISPLAY_INACTIVE",
"Node": "FGPreferIdle",
@ -1305,6 +1339,12 @@
"Duration": 1000,
"Value": "1"
},
{
"PowerHint": "CAMERA_LAUNCH",
"Node": "AutoPreferIdle",
"Duration": 1000,
"Value": "0"
},
{
"PowerHint": "CAMERA_LAUNCH",
"Node": "FGCpuset",
@ -1425,6 +1465,12 @@
"Duration": 100,
"Value": "1"
},
{
"PowerHint": "CAMERA_ZOOMING_BOOST",
"Node": "AutoPreferIdle",
"Duration": 100,
"Value": "0"
},
{
"PowerHint": "CAMERA_ZOOMING_BOOST",
"Node": "PMU_POLL",
@ -1641,6 +1687,12 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "AutoPreferIdle",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "CDHighCpusetCpus",
@ -1797,6 +1849,12 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "AutoPreferIdle",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CDPreferIdle",
@ -1833,6 +1891,12 @@
"Duration": 0,
"Value": "camera"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "AutoPreferIdle",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CPUDVFSHeadroom",
@ -1977,6 +2041,12 @@
"Duration": 0,
"Value": "camera"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "AutoPreferIdle",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "CPUDVFSHeadroom",
@ -2091,6 +2161,12 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_VIDEO_CALL",
"Node": "AutoPreferIdle",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_VIDEO_CALL",
"Node": "CDPreferIdle",
@ -2524,6 +2600,12 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "GAME",
"Node": "AutoPreferIdle",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "GAME",
"Node": "FGPreferIdle",