From 1b53c2496dca274bd3f8173780a7d6562b5cc016 Mon Sep 17 00:00:00 2001 From: Suren Baghdasaryan Date: Tue, 18 Jun 2019 13:33:23 -0700 Subject: [PATCH] libprocessgroup: Replace stune with utilclamp profiles Replace schedtune out-of-tree controller's usage in the performance profiles with utilclamp controller. Stop mounting schedtune controller. Bug: 170507876 Test: cpuctl groups worked Signed-off-by: Suren Baghdasaryan Change-Id: Ib7fa6c902581398587c75414845c2ff6c8bdb005 --- libprocessgroup/profiles/cgroups.json | 7 ---- libprocessgroup/profiles/task_profiles.json | 44 ++++++++++++--------- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/libprocessgroup/profiles/cgroups.json b/libprocessgroup/profiles/cgroups.json index 451848711..5b7a28a91 100644 --- a/libprocessgroup/profiles/cgroups.json +++ b/libprocessgroup/profiles/cgroups.json @@ -32,13 +32,6 @@ "Mode": "0700", "UID": "root", "GID": "system" - }, - { - "Controller": "schedtune", - "Path": "/dev/stune", - "Mode": "0755", - "UID": "system", - "GID": "system" } ], "Cgroups2": { diff --git a/libprocessgroup/profiles/task_profiles.json b/libprocessgroup/profiles/task_profiles.json index c4dbf8e55..ea0064f55 100644 --- a/libprocessgroup/profiles/task_profiles.json +++ b/libprocessgroup/profiles/task_profiles.json @@ -30,16 +30,6 @@ "Controller": "memory", "File": "memory.swappiness" }, - { - "Name": "STuneBoost", - "Controller": "schedtune", - "File": "schedtune.boost" - }, - { - "Name": "STunePreferIdle", - "Controller": "schedtune", - "File": "schedtune.prefer_idle" - }, { "Name": "UClampMin", "Controller": "cpu", @@ -50,6 +40,11 @@ "Controller": "cpu", "File": "cpu.uclamp.max" }, + { + "Name": "UClampLatencySensitive", + "Controller": "cpu", + "File": "cpu.uclamp.latency_sensitive" + }, { "Name": "FreezerState", "Controller": "freezer", @@ -65,7 +60,7 @@ "Name": "JoinCgroup", "Params": { - "Controller": "schedtune", + "Controller": "cpu", "Path": "background" } } @@ -104,7 +99,7 @@ "Name": "JoinCgroup", "Params": { - "Controller": "schedtune", + "Controller": "cpu", "Path": "" } } @@ -117,7 +112,7 @@ "Name": "JoinCgroup", "Params": { - "Controller": "schedtune", + "Controller": "cpu", "Path": "foreground" } } @@ -130,7 +125,7 @@ "Name": "JoinCgroup", "Params": { - "Controller": "schedtune", + "Controller": "cpu", "Path": "top-app" } } @@ -143,7 +138,7 @@ "Name": "JoinCgroup", "Params": { - "Controller": "schedtune", + "Controller": "cpu", "Path": "rt" } } @@ -156,12 +151,25 @@ "Name": "JoinCgroup", "Params": { - "Controller": "schedtune", + "Controller": "cpu", "Path": "camera-daemon" } } ] }, + { + "Name": "NNApiHALPerformance", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpu", + "Path": "nnapi-hal" + } + } + ] + }, { "Name": "CpuPolicySpread", @@ -170,7 +178,7 @@ "Name": "SetAttribute", "Params": { - "Name": "STunePreferIdle", + "Name": "UClampLatencySensitive", "Value": "1" } } @@ -183,7 +191,7 @@ "Name": "SetAttribute", "Params": { - "Name": "STunePreferIdle", + "Name": "UClampLatencySensitive", "Value": "0" } }