From 7707909ba26805d1c8453c2856a983a38ce26097 Mon Sep 17 00:00:00 2001 From: Marco Ballesio Date: Tue, 26 Jan 2021 22:25:11 +0000 Subject: [PATCH] Revert "Revert "libprocessgroup: move freezer to uid/pid hierarchy"" This reverts commit b01aa99408beec185fbece2e57523f66d47f0178. Reason for revert: blocking issue was resolved https://partner-android-review.googlesource.com/c/kernel/private/gs-google/+/1846507 Change-Id: If125fe9af53e2b519955f021208d5d5530c6277e --- libprocessgroup/profiles/cgroups.json | 2 +- libprocessgroup/profiles/task_profiles.json | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libprocessgroup/profiles/cgroups.json b/libprocessgroup/profiles/cgroups.json index 7bcb94bd9..962d2baa8 100644 --- a/libprocessgroup/profiles/cgroups.json +++ b/libprocessgroup/profiles/cgroups.json @@ -37,7 +37,7 @@ "Controllers": [ { "Controller": "freezer", - "Path": "freezer", + "Path": ".", "Mode": "0755", "UID": "system", "GID": "system" diff --git a/libprocessgroup/profiles/task_profiles.json b/libprocessgroup/profiles/task_profiles.json index 5b57bdd12..628098b55 100644 --- a/libprocessgroup/profiles/task_profiles.json +++ b/libprocessgroup/profiles/task_profiles.json @@ -46,7 +46,7 @@ "File": "cpu.uclamp.latency_sensitive" }, { - "Name": "FreezerState", + "Name": "Freezer", "Controller": "freezer", "File": "cgroup.freeze" } @@ -70,11 +70,11 @@ "Name": "Frozen", "Actions": [ { - "Name": "JoinCgroup", + "Name": "SetAttribute", "Params": { - "Controller": "freezer", - "Path": "" + "Name": "Freezer", + "Value": "1" } } ] @@ -83,11 +83,11 @@ "Name": "Unfrozen", "Actions": [ { - "Name": "JoinCgroup", + "Name": "SetAttribute", "Params": { - "Controller": "freezer", - "Path": "../" + "Name": "Freezer", + "Value": "0" } } ]