From 8116ee60ba05fe7ccf9fe847a435c2c03c84129a Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Mon, 15 Apr 2024 14:40:17 +0000 Subject: [PATCH] Add cpuset system group Set cpuset system group to little and mid cores only when screen off. Bug: 328210236 Test: build pass Change-Id: I3c116998e3bb5f347b8a0d401b7a22c458b19657 --- perf/powerhint-caiman.json | 16 ++++++++++++++++ perf/powerhint-komodo.json | 16 ++++++++++++++++ perf/powerhint-ripcurrentpro.json | 16 ++++++++++++++++ perf/powerhint-tokay.json | 16 ++++++++++++++++ 4 files changed, 64 insertions(+) diff --git a/perf/powerhint-caiman.json b/perf/powerhint-caiman.json index 6070f830..c7caefb9 100644 --- a/perf/powerhint-caiman.json +++ b/perf/powerhint-caiman.json @@ -301,6 +301,16 @@ "DefaultIndex": 0, "ResetOnInit": true }, + { + "Name": "SystemCpuset", + "Path": "/dev/cpuset/system/cpus", + "Values": [ + "0-7", + "0-6" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "FGCpuset", "Path": "/dev/cpuset/foreground/cpus", @@ -2689,6 +2699,12 @@ "Type": "EndHint", "Value": "DISPLAY_UPDATE_IMMINENT" }, + { + "PowerHint": "DISPLAY_IDLE", + "Node": "SystemCpuset", + "Duration": 0, + "Value": "0-6" + }, { "PowerHint": "DISPLAY_UPDATE_IMMINENT", "Node": "CPULittleClusterDownRateLimitUs", diff --git a/perf/powerhint-komodo.json b/perf/powerhint-komodo.json index a15df4b1..778629b7 100644 --- a/perf/powerhint-komodo.json +++ b/perf/powerhint-komodo.json @@ -301,6 +301,16 @@ "DefaultIndex": 0, "ResetOnInit": true }, + { + "Name": "SystemCpuset", + "Path": "/dev/cpuset/system/cpus", + "Values": [ + "0-7", + "0-6" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "FGCpuset", "Path": "/dev/cpuset/foreground/cpus", @@ -2689,6 +2699,12 @@ "Type": "EndHint", "Value": "DISPLAY_UPDATE_IMMINENT" }, + { + "PowerHint": "DISPLAY_IDLE", + "Node": "SystemCpuset", + "Duration": 0, + "Value": "0-6" + }, { "PowerHint": "DISPLAY_UPDATE_IMMINENT", "Node": "CPULittleClusterDownRateLimitUs", diff --git a/perf/powerhint-ripcurrentpro.json b/perf/powerhint-ripcurrentpro.json index 99d9d979..54fa30b1 100644 --- a/perf/powerhint-ripcurrentpro.json +++ b/perf/powerhint-ripcurrentpro.json @@ -354,6 +354,16 @@ "DefaultIndex": 0, "ResetOnInit": true }, + { + "Name": "SystemCpuset", + "Path": "/dev/cpuset/system/cpus", + "Values": [ + "0-7", + "0-6" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "FGCpuset", "Path": "/dev/cpuset/foreground/cpus", @@ -2678,6 +2688,12 @@ "Type": "EndHint", "Value": "DISPLAY_UPDATE_IMMINENT" }, + { + "PowerHint": "DISPLAY_IDLE", + "Node": "SystemCpuset", + "Duration": 0, + "Value": "0-6" + }, { "PowerHint": "DISPLAY_UPDATE_IMMINENT", "Node": "CPULittleClusterDownRateLimitUs", diff --git a/perf/powerhint-tokay.json b/perf/powerhint-tokay.json index 6070f830..c7caefb9 100644 --- a/perf/powerhint-tokay.json +++ b/perf/powerhint-tokay.json @@ -301,6 +301,16 @@ "DefaultIndex": 0, "ResetOnInit": true }, + { + "Name": "SystemCpuset", + "Path": "/dev/cpuset/system/cpus", + "Values": [ + "0-7", + "0-6" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "FGCpuset", "Path": "/dev/cpuset/foreground/cpus", @@ -2689,6 +2699,12 @@ "Type": "EndHint", "Value": "DISPLAY_UPDATE_IMMINENT" }, + { + "PowerHint": "DISPLAY_IDLE", + "Node": "SystemCpuset", + "Duration": 0, + "Value": "0-6" + }, { "PowerHint": "DISPLAY_UPDATE_IMMINENT", "Node": "CPULittleClusterDownRateLimitUs",