From b01aa99408beec185fbece2e57523f66d47f0178 Mon Sep 17 00:00:00 2001 From: Marco Ballesio Date: Tue, 5 Jan 2021 21:36:44 +0000 Subject: [PATCH] Revert "libprocessgroup: move freezer to uid/pid hierarchy" This reverts commit 1414a0d4d8b5254755184333d38118f1a2c16873. Reason for revert: reversions of CLs from http://b/174776875 removed dependencies for this CL, and made the freezer non-functional. This CL has to be reverted as well Bug:174776875 Change-Id: Idbd9532374bb661330b3c7546bbdf086a046aba3 --- 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 962d2baa8..7bcb94bd9 100644 --- a/libprocessgroup/profiles/cgroups.json +++ b/libprocessgroup/profiles/cgroups.json @@ -37,7 +37,7 @@ "Controllers": [ { "Controller": "freezer", - "Path": ".", + "Path": "freezer", "Mode": "0755", "UID": "system", "GID": "system" diff --git a/libprocessgroup/profiles/task_profiles.json b/libprocessgroup/profiles/task_profiles.json index 628098b55..5b57bdd12 100644 --- a/libprocessgroup/profiles/task_profiles.json +++ b/libprocessgroup/profiles/task_profiles.json @@ -46,7 +46,7 @@ "File": "cpu.uclamp.latency_sensitive" }, { - "Name": "Freezer", + "Name": "FreezerState", "Controller": "freezer", "File": "cgroup.freeze" } @@ -70,11 +70,11 @@ "Name": "Frozen", "Actions": [ { - "Name": "SetAttribute", + "Name": "JoinCgroup", "Params": { - "Name": "Freezer", - "Value": "1" + "Controller": "freezer", + "Path": "" } } ] @@ -83,11 +83,11 @@ "Name": "Unfrozen", "Actions": [ { - "Name": "SetAttribute", + "Name": "JoinCgroup", "Params": { - "Name": "Freezer", - "Value": "0" + "Controller": "freezer", + "Path": "../" } } ]