From e57a5f03b58bc250c3d7cdf62d11898aba8ffd78 Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Thu, 17 Nov 2022 03:03:26 +0000 Subject: [PATCH] Change the default cpuset of camera daemon Changing cpuset itself takes time, so we should reduce the cpuset change as possible. Since all camera streaming mode change to the same cpuset value, we could make it default setting. Bug: 240889279 Test: build pass Change-Id: I11a865fa2eeeb67225d4b129497b1cd85237644f --- powerhint.json | 93 +++++--------------------------------------------- 1 file changed, 9 insertions(+), 84 deletions(-) diff --git a/powerhint.json b/powerhint.json index 9b9b658..7a0d0f7 100644 --- a/powerhint.json +++ b/powerhint.json @@ -225,8 +225,7 @@ "Path": "/dev/cpuset/camera-daemon-high-group/cpus", "Values": [ "0-3", - "6-7", - "0-7" + "6-7" ], "ResetOnInit": true }, @@ -235,8 +234,7 @@ "Path": "/dev/cpuset/camera-daemon-mid-group/cpus", "Values": [ "0-3", - "4-5", - "0-7" + "4-5" ], "ResetOnInit": true }, @@ -245,8 +243,7 @@ "Path": "/dev/cpuset/camera-daemon-mid-high-group/cpus", "Values": [ "0-3", - "4-7", - "0-7" + "4-7" ], "ResetOnInit": true }, @@ -716,18 +713,18 @@ "Duration": 1000, "Value": "612" }, - { - "PowerHint": "CAMERA_LAUNCH", - "Node": "CDCpuset", - "Duration": 1000, - "Value": "4-7" - }, { "PowerHint": "CAMERA_LAUNCH", "Node": "NPITaskPacking", "Duration": 1000, "Value": "0" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "CDCpuset", + "Duration": 1000, + "Value": "4-7" + }, { "PowerHint": "CAMERA_LAUNCH_EXTENDED", "Node": "CPUBigClusterMaxFreq", @@ -992,24 +989,6 @@ "Duration": 0, "Value": "0" }, - { - "PowerHint": "CAMERA_STREAMING_EXTREME", - "Node": "CDHighCpusetCpus", - "Duration": 0, - "Value": "6-7" - }, - { - "PowerHint": "CAMERA_STREAMING_EXTREME", - "Node": "CDMidCpusetCpus", - "Duration": 0, - "Value": "4-5" - }, - { - "PowerHint": "CAMERA_STREAMING_EXTREME", - "Node": "CDMidHighCpusetCpus", - "Duration": 0, - "Value": "4-7" - }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "NPITaskPacking", @@ -1076,24 +1055,6 @@ "Duration": 0, "Value": "0" }, - { - "PowerHint": "CAMERA_STREAMING_HIGH", - "Node": "CDHighCpusetCpus", - "Duration": 0, - "Value": "6-7" - }, - { - "PowerHint": "CAMERA_STREAMING_HIGH", - "Node": "CDMidCpusetCpus", - "Duration": 0, - "Value": "4-5" - }, - { - "PowerHint": "CAMERA_STREAMING_HIGH", - "Node": "CDMidHighCpusetCpus", - "Duration": 0, - "Value": "4-7" - }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "NPITaskPacking", @@ -1148,24 +1109,6 @@ "Duration": 0, "Value": "20 10 80" }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "CDHighCpusetCpus", - "Duration": 0, - "Value": "6-7" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "CDMidCpusetCpus", - "Duration": 0, - "Value": "4-5" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "CDMidHighCpusetCpus", - "Duration": 0, - "Value": "4-7" - }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "NPITaskPacking", @@ -1226,24 +1169,6 @@ "Duration": 0, "Value": "20 10 80" }, - { - "PowerHint": "CAMERA_STREAMING_LOW", - "Node": "CDHighCpusetCpus", - "Duration": 0, - "Value": "6-7" - }, - { - "PowerHint": "CAMERA_STREAMING_LOW", - "Node": "CDMidCpusetCpus", - "Duration": 0, - "Value": "4-5" - }, - { - "PowerHint": "CAMERA_STREAMING_LOW", - "Node": "CDMidHighCpusetCpus", - "Duration": 0, - "Value": "4-7" - }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "NPITaskPacking",