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

Commit 7c380087 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge changes from topic "freezer path" am: bbae54c2

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1578126

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2e5751390ca227902aff9d062077de4148aed0f7
parents bc2ad2be bbae54c2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -35,6 +35,8 @@ bool SetProcessProfiles(uid_t uid, pid_t pid, const std::vector<std::string>& pr
#ifndef __ANDROID_VNDK__

static constexpr const char* CGROUPS_RC_PATH = "/dev/cgroup_info/cgroup.rc";
// Path to test against for freezer support
static constexpr const char* CGROUP_FREEZE_PATH = "/sys/fs/cgroup/freezer/cgroup.freeze";

bool UsePerAppMemcg();

+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@
    "Controllers": [
      {
        "Controller": "freezer",
        "Path": ".",
        "Path": "freezer",
        "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": "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": "../"
          }
        }
      ]