Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1414a0d4 authored by Marco Ballesio's avatar Marco Ballesio
Browse files

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: default avatarMarco Ballesio <balejs@google.com>
Change-Id: Ica2c4bfd20190fb2f2dc0a530eb47e1a8427c522
parent 756a6045
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@
    "Controllers": [
      {
        "Controller": "freezer",
        "Path": "freezer",
        "Path": ".",
        "Mode": "0755",
        "UID": "system",
        "GID": "system"
+7 −7
Original line number Diff line number Diff line
@@ -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"
          }
        }
      ]