From 8f1ed4d48fc2f20ee226a0f1afc97151a90f3bb7 Mon Sep 17 00:00:00 2001 From: "Peter (YM)" Date: Thu, 27 Jul 2023 03:26:55 +0000 Subject: [PATCH] thermal: add CPU policy for camera mode Disable VIRTUAL-SKIN-CPU-HIGH for camera mode Bug: 293243529 Test: run camcorder Change-Id: Ie6b34209009d53fb2a94dc93ddab253deb4d798a Signed-off-by: Peter (YM) --- powerhint-akita.json | 29 ++++++++++++++++++++++++++--- thermal_info_config_akita.json | 20 ++++++++++++++++++++ 2 files changed, 46 insertions(+), 3 deletions(-) diff --git a/powerhint-akita.json b/powerhint-akita.json index be39284..03e7c07 100644 --- a/powerhint-akita.json +++ b/powerhint-akita.json @@ -754,18 +754,23 @@ "Name": "VIRTUAL-SKIN-CPU-MID", "Path": "vendor.thermal.VIRTUAL-SKIN-CPU-MID.profile", "Values": [ - "game", - "" + "", + "game" ], + "DefaultIndex": 0, + "ResetOnInit": true, "Type": "Property" }, { "Name": "VIRTUAL-SKIN-CPU-HIGH", "Path": "vendor.thermal.VIRTUAL-SKIN-CPU-HIGH.profile", "Values": [ + "", "game", - "" + "camera" ], + "DefaultIndex": 0, + "ResetOnInit": true, "Type": "Property" }, { @@ -1417,6 +1422,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_EXTREME", + "Node": "VIRTUAL-SKIN-CPU-HIGH", + "Duration": 0, + "Value": "camera" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PowerHALCameraRunning", @@ -1561,6 +1572,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "VIRTUAL-SKIN-CPU-HIGH", + "Duration": 0, + "Value": "camera" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "PowerHALCameraRunning", @@ -1687,6 +1704,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "VIRTUAL-SKIN-CPU-HIGH", + "Duration": 0, + "Value": "camera" + }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "PowerHALCameraRunning", diff --git a/thermal_info_config_akita.json b/thermal_info_config_akita.json index 5ba1639..597d27f 100644 --- a/thermal_info_config_akita.json +++ b/thermal_info_config_akita.json @@ -354,6 +354,26 @@ "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 + } + ] } ] },