From 5618aa14c8633e6424a89f2c5661ed6380a3d480 Mon Sep 17 00:00:00 2001 From: Peter Liu Date: Thu, 20 May 2021 16:36:14 -0700 Subject: [PATCH] camera power hint: add mid cap based on current constraint Current mid cpu max clock is constrained by little cpu cap. The cpu cluster clock constraint is going to be significantly reduced, so put the current mid cap to avoid mid cpu regression. Further fine tuning on the cap will be continued later. Bug: 186564130 Signed-off-by: Peter Liu Change-Id: I1e4568bb6e6167c91d8f98da337b1dd849a278bb --- powerhint.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/powerhint.json b/powerhint.json index e95395bb..7dd7e39d 100644 --- a/powerhint.json +++ b/powerhint.json @@ -36,7 +36,8 @@ "Path": "/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq", "Values": [ "9999999", - "1999000" + "1999000", + "1491000" ], "DefaultIndex": 0, "ResetOnInit": true @@ -353,6 +354,12 @@ "Duration": 0, "Value": "1100" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "CPUMidClusterMaxFreq", + "Duration": 0, + "Value": "1491000" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CPUBigClusterMaxFreq", @@ -413,6 +420,12 @@ "Duration": 0, "Value": "1826000" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPUMidClusterMaxFreq", + "Duration": 0, + "Value": "1491000" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CPULittleClusterMaxFreq",