From 83bdd31a60abf78b3a2d4b609af294a3eeeea661 Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Fri, 24 May 2024 13:45:23 +0000 Subject: [PATCH] Set big core to group_cfs_skip_mask for sys group Set big core to group_cfs_skip_mask for sys group when screen is off, so that sys group tasks will run less in big core. Bug: 328210236 Test: build pass Change-Id: I9ccb3035a480e88960951222c45d0ca8352082d9 --- perf/powerhint-husky.json | 16 ++++++++++++++++ perf/powerhint-ripcurrent.json | 16 ++++++++++++++++ perf/powerhint-shiba.json | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) diff --git a/perf/powerhint-husky.json b/perf/powerhint-husky.json index b944c9c..02dcff1 100644 --- a/perf/powerhint-husky.json +++ b/perf/powerhint-husky.json @@ -457,6 +457,16 @@ ], "ResetOnInit": true }, + { + "Name": "SysGroupCfsSkipMask", + "Path": "/proc/vendor_sched/groups/sys/group_cfs_skip_mask", + "Values": [ + "0x0", + "0x80" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "FGPreferIdle", "Path": "/proc/vendor_sched/groups/fg/prefer_idle", @@ -1275,6 +1285,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "DISPLAY_INACTIVE", + "Node": "SysGroupCfsSkipMask", + "Duration": 0, + "Value": "0x80" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "CPU_BIG_TSKIN_BYPASS", diff --git a/perf/powerhint-ripcurrent.json b/perf/powerhint-ripcurrent.json index f5f1ca1..1367f6f 100644 --- a/perf/powerhint-ripcurrent.json +++ b/perf/powerhint-ripcurrent.json @@ -443,6 +443,16 @@ ], "ResetOnInit": true }, + { + "Name": "SysGroupCfsSkipMask", + "Path": "/proc/vendor_sched/groups/sys/group_cfs_skip_mask", + "Values": [ + "0x0", + "0x80" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "FGPreferIdle", "Path": "/proc/vendor_sched/groups/fg/prefer_idle", @@ -1274,6 +1284,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "DISPLAY_INACTIVE", + "Node": "SysGroupCfsSkipMask", + "Duration": 0, + "Value": "0x80" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq", diff --git a/perf/powerhint-shiba.json b/perf/powerhint-shiba.json index c9ca7d2..6bb7a0d 100644 --- a/perf/powerhint-shiba.json +++ b/perf/powerhint-shiba.json @@ -457,6 +457,16 @@ ], "ResetOnInit": true }, + { + "Name": "SysGroupCfsSkipMask", + "Path": "/proc/vendor_sched/groups/sys/group_cfs_skip_mask", + "Values": [ + "0x0", + "0x80" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "FGPreferIdle", "Path": "/proc/vendor_sched/groups/fg/prefer_idle", @@ -1281,6 +1291,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "DISPLAY_INACTIVE", + "Node": "SysGroupCfsSkipMask", + "Duration": 0, + "Value": "0x80" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "CPU_BIG_TSKIN_BYPASS",