From ee3e6daf696aab4f1d8678b4a5efcf2562171bef Mon Sep 17 00:00:00 2001 From: Minghui Tan Date: Mon, 2 Aug 2021 17:25:16 -0700 Subject: [PATCH] Add CAMERA_CPU_THROTTLE as power hint. Bug: 195327798 Test: CPU cores max frequencies updated properly Change-Id: Idaacbfa1b4dca7765e9754d4aff997dd2495c2a9 --- powerhint.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/powerhint.json b/powerhint.json index 1e5714c2..081f9e66 100644 --- a/powerhint.json +++ b/powerhint.json @@ -24,6 +24,7 @@ "Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq", "Values": [ "9999999", + "1098000", "1401000", "1197000" ], @@ -45,6 +46,7 @@ "Path": "/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq", "Values": [ "9999999", + "1024000", "1999000", "1491000" ], @@ -66,6 +68,7 @@ "Path": "/sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq", "Values": [ "9999999", + "984000", "1826000" ], "DefaultIndex": 0, @@ -462,6 +465,24 @@ "Duration": 1000, "Value": "4-7" }, + { + "PowerHint": "CAMERA_CPU_THROTTLE", + "Node": "CPUBigClusterMaxFreq", + "Duration": 1000, + "Value": "984000" + }, + { + "PowerHint": "CAMERA_CPU_THROTTLE", + "Node": "CPUMidClusterMaxFreq", + "Duration": 1000, + "Value": "1024000" + }, + { + "PowerHint": "CAMERA_CPU_THROTTLE", + "Node": "CPULittleClusterMaxFreq", + "Duration": 1000, + "Value": "1098000" + }, { "PowerHint": "CAMERA_SHOT", "Node": "MemFreq",