From 079477468fbefafd604de623d1dc738868b90570 Mon Sep 17 00:00:00 2001 From: Marco Ballesio Date: Thu, 4 Feb 2021 11:26:05 -0800 Subject: [PATCH] Revert^3 "libprocessgroup: move freezer to uid/pid hierarchy" This reverts commit 7707909ba26805d1c8453c2856a983a38ce26097. Bug: 179006802 Test: verified correct functioning of the freezer after reverting Change-Id: I848146a18a0879010abf5b00e7081f2771059064 --- 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 792af6fce..5b7a28a91 100644 --- a/libprocessgroup/profiles/cgroups.json +++ b/libprocessgroup/profiles/cgroups.json @@ -42,7 +42,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": "../" } } ]