libprocessgroup: move freezer to uid/pid hierarchy

Migrate the freezer controller as an attribute for the uid/pid hierarchy

Bug: 168907513
Test: manually verified that the freezer behavior was as expected after
applying the enablers in ActivityManager

Signed-off-by: Marco Ballesio <balejs@google.com>
Change-Id: Ica2c4bfd20190fb2f2dc0a530eb47e1a8427c522
This commit is contained in:
Marco Ballesio 2020-12-02 13:48:44 -08:00
parent 756a60459c
commit 1414a0d4d8
2 changed files with 8 additions and 8 deletions

View File

@ -37,7 +37,7 @@
"Controllers": [
{
"Controller": "freezer",
"Path": "freezer",
"Path": ".",
"Mode": "0755",
"UID": "system",
"GID": "system"

View File

@ -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"
}
}
]