From 84ba46f093decad28a1c093f90fcf693d56c5a34 Mon Sep 17 00:00:00 2001 From: Kyle Lin Date: Mon, 14 Nov 2022 12:21:30 +0800 Subject: [PATCH] powerhint: relax the cap when camera exit Camera hints was canceled at activityStop and applied the rule for a while after LAUNCH hint, exten the LAUNCH HINT to fix it. Bug: 255927500 Test: build and launch/exit camera Change-Id: I95031b5aa1d19f618bc3321679015c9be76fdbea --- powerhint-cheetah.json | 23 +++++++++++++++++++++++ powerhint-panther.json | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/powerhint-cheetah.json b/powerhint-cheetah.json index c04aec8..391028f 100644 --- a/powerhint-cheetah.json +++ b/powerhint-cheetah.json @@ -762,6 +762,29 @@ "EnableProperty": "vendor.powerhal.camerarunning", "Value": "CDMIDHIGHCPUSETCPUS_RESTRICTED" }, + { + "PowerHint": "LAUNCH", + "Type": "DoHint", + "Value": "LAUNCH_EXTEND" + }, + { + "PowerHint": "LAUNCH_EXTEND", + "Node": "CPUBigClusterMaxFreq", + "Duration": 2000, + "Value": "9999999" + }, + { + "PowerHint": "LAUNCH_EXTEND", + "Node": "CPUMidClusterMaxFreq", + "Duration": 2000, + "Value": "9999999" + }, + { + "PowerHint": "LAUNCH_EXTEND", + "Node": "CPULittleClusterMaxFreq", + "Duration": 2000, + "Value": "9999999" + }, { "PowerHint": "LAUNCH_PMU", "Node": "PMU_POLL", diff --git a/powerhint-panther.json b/powerhint-panther.json index 20171b3..c277a9f 100644 --- a/powerhint-panther.json +++ b/powerhint-panther.json @@ -731,6 +731,29 @@ "EnableProperty": "vendor.powerhal.camerarunning", "Value": "CDMIDHIGHCPUSETCPUS_RESTRICTED" }, + { + "PowerHint": "LAUNCH", + "Type": "DoHint", + "Value": "LAUNCH_EXTEND" + }, + { + "PowerHint": "LAUNCH_EXTEND", + "Node": "CPUBigClusterMaxFreq", + "Duration": 2000, + "Value": "9999999" + }, + { + "PowerHint": "LAUNCH_EXTEND", + "Node": "CPUMidClusterMaxFreq", + "Duration": 2000, + "Value": "9999999" + }, + { + "PowerHint": "LAUNCH_EXTEND", + "Node": "CPULittleClusterMaxFreq", + "Duration": 2000, + "Value": "9999999" + }, { "PowerHint": "LAUNCH_PMU", "Node": "PMU_POLL",