thermal: add CPU policy for camera mode

Disable VIRTUAL-SKIN-CPU-HIGH for camera mode

Bug: 290225694
Test: run camcorder
Change-Id: I175f95df41cd72e1075dc19be488642ad5e3f073
This commit is contained in:
TeYuan Wang 2023-07-12 11:28:40 -07:00 committed by Kame(TeYuan) Wang
parent d47880f74e
commit d28196ccc3
4 changed files with 95 additions and 9 deletions

View file

@ -754,18 +754,23 @@
"Name": "VIRTUAL-SKIN-CPU-MID", "Name": "VIRTUAL-SKIN-CPU-MID",
"Path": "vendor.thermal.VIRTUAL-SKIN-CPU-MID.profile", "Path": "vendor.thermal.VIRTUAL-SKIN-CPU-MID.profile",
"Values": [ "Values": [
"game", "",
"" "game"
], ],
"DefaultIndex": 0,
"ResetOnInit": true,
"Type": "Property" "Type": "Property"
}, },
{ {
"Name": "VIRTUAL-SKIN-CPU-HIGH", "Name": "VIRTUAL-SKIN-CPU-HIGH",
"Path": "vendor.thermal.VIRTUAL-SKIN-CPU-HIGH.profile", "Path": "vendor.thermal.VIRTUAL-SKIN-CPU-HIGH.profile",
"Values": [ "Values": [
"",
"game", "game",
"" "camera"
], ],
"DefaultIndex": 0,
"ResetOnInit": true,
"Type": "Property" "Type": "Property"
}, },
{ {
@ -1519,6 +1524,12 @@
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "VIRTUAL-SKIN-CPU-HIGH",
"Duration": 0,
"Value": "camera"
},
{ {
"PowerHint": "CAMERA_STREAMING_HIGH", "PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "PowerHALCameraRunning", "Node": "PowerHALCameraRunning",
@ -1663,6 +1674,12 @@
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "VIRTUAL-SKIN-CPU-HIGH",
"Duration": 0,
"Value": "camera"
},
{ {
"PowerHint": "CAMERA_STREAMING_STANDARD", "PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "PowerHALCameraRunning", "Node": "PowerHALCameraRunning",
@ -1789,6 +1806,12 @@
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "VIRTUAL-SKIN-CPU-HIGH",
"Duration": 0,
"Value": "camera"
},
{ {
"PowerHint": "CAMERA_STREAMING_LOW", "PowerHint": "CAMERA_STREAMING_LOW",
"Node": "PowerHALCameraRunning", "Node": "PowerHALCameraRunning",

View file

@ -754,18 +754,23 @@
"Name": "VIRTUAL-SKIN-CPU-MID", "Name": "VIRTUAL-SKIN-CPU-MID",
"Path": "vendor.thermal.VIRTUAL-SKIN-CPU-MID.profile", "Path": "vendor.thermal.VIRTUAL-SKIN-CPU-MID.profile",
"Values": [ "Values": [
"game", "",
"" "game"
], ],
"DefaultIndex": 0,
"ResetOnInit": true,
"Type": "Property" "Type": "Property"
}, },
{ {
"Name": "VIRTUAL-SKIN-CPU-HIGH", "Name": "VIRTUAL-SKIN-CPU-HIGH",
"Path": "vendor.thermal.VIRTUAL-SKIN-CPU-HIGH.profile", "Path": "vendor.thermal.VIRTUAL-SKIN-CPU-HIGH.profile",
"Values": [ "Values": [
"",
"game", "game",
"" "camera"
], ],
"DefaultIndex": 0,
"ResetOnInit": true,
"Type": "Property" "Type": "Property"
}, },
{ {
@ -1417,6 +1422,12 @@
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "VIRTUAL-SKIN-CPU-HIGH",
"Duration": 0,
"Value": "camera"
},
{ {
"PowerHint": "CAMERA_STREAMING_HIGH", "PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "PowerHALCameraRunning", "Node": "PowerHALCameraRunning",
@ -1561,6 +1572,12 @@
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "VIRTUAL-SKIN-CPU-HIGH",
"Duration": 0,
"Value": "camera"
},
{ {
"PowerHint": "CAMERA_STREAMING_STANDARD", "PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "PowerHALCameraRunning", "Node": "PowerHALCameraRunning",
@ -1687,6 +1704,12 @@
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "VIRTUAL-SKIN-CPU-HIGH",
"Duration": 0,
"Value": "camera"
},
{ {
"PowerHint": "CAMERA_STREAMING_LOW", "PowerHint": "CAMERA_STREAMING_LOW",
"Node": "PowerHALCameraRunning", "Node": "PowerHALCameraRunning",

View file

@ -531,17 +531,37 @@
{ {
"CdevRequest": "thermal-cpufreq-0", "CdevRequest": "thermal-cpufreq-0",
"MaxReleaseStep": 1, "MaxReleaseStep": 1,
"Disabled":true "Disabled":true
}, },
{ {
"CdevRequest": "thermal-cpufreq-1", "CdevRequest": "thermal-cpufreq-1",
"MaxReleaseStep": 1, "MaxReleaseStep": 1,
"Disabled":true "Disabled":true
}, },
{ {
"CdevRequest": "thermal-cpufreq-2", "CdevRequest": "thermal-cpufreq-2",
"MaxReleaseStep": 1, "MaxReleaseStep": 1,
"Disabled":true "Disabled":true
}
]
},
{
"Mode": "camera",
"BindedCdevInfo": [
{
"CdevRequest": "thermal-cpufreq-0",
"MaxReleaseStep": 1,
"Disabled":true
},
{
"CdevRequest": "thermal-cpufreq-1",
"MaxReleaseStep": 1,
"Disabled":true
},
{
"CdevRequest": "thermal-cpufreq-2",
"MaxReleaseStep": 1,
"Disabled":true
} }
] ]
} }

View file

@ -512,6 +512,26 @@
"Disabled":true "Disabled":true
} }
] ]
},
{
"Mode": "camera",
"BindedCdevInfo": [
{
"CdevRequest": "thermal-cpufreq-0",
"MaxReleaseStep": 1,
"Disabled":true
},
{
"CdevRequest": "thermal-cpufreq-1",
"MaxReleaseStep": 1,
"Disabled":true
},
{
"CdevRequest": "thermal-cpufreq-2",
"MaxReleaseStep": 1,
"Disabled":true
}
]
} }
] ]
}, },