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

Commit 1b53c249 authored by Suren Baghdasaryan's avatar Suren Baghdasaryan
Browse files

libprocessgroup: Replace stune with utilclamp profiles



Replace schedtune out-of-tree controller's usage in the performance
profiles with utilclamp controller. Stop mounting schedtune controller.

Bug: 170507876
Test: cpuctl groups worked
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
Change-Id: Ib7fa6c902581398587c75414845c2ff6c8bdb005
parent 4e4cff7e
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -32,13 +32,6 @@
      "Mode": "0700",
      "UID": "root",
      "GID": "system"
    },
    {
      "Controller": "schedtune",
      "Path": "/dev/stune",
      "Mode": "0755",
      "UID": "system",
      "GID": "system"
    }
  ],
  "Cgroups2": {
+26 −18
Original line number Diff line number Diff line
@@ -30,16 +30,6 @@
      "Controller": "memory",
      "File": "memory.swappiness"
    },
    {
      "Name": "STuneBoost",
      "Controller": "schedtune",
      "File": "schedtune.boost"
    },
    {
      "Name": "STunePreferIdle",
      "Controller": "schedtune",
      "File": "schedtune.prefer_idle"
    },
    {
      "Name": "UClampMin",
      "Controller": "cpu",
@@ -50,6 +40,11 @@
      "Controller": "cpu",
      "File": "cpu.uclamp.max"
    },
    {
      "Name": "UClampLatencySensitive",
      "Controller": "cpu",
      "File": "cpu.uclamp.latency_sensitive"
    },
    {
      "Name": "FreezerState",
      "Controller": "freezer",
@@ -65,7 +60,7 @@
          "Name": "JoinCgroup",
          "Params":
          {
            "Controller": "schedtune",
            "Controller": "cpu",
            "Path": "background"
          }
        }
@@ -104,7 +99,7 @@
          "Name": "JoinCgroup",
          "Params":
          {
            "Controller": "schedtune",
            "Controller": "cpu",
            "Path": ""
          }
        }
@@ -117,7 +112,7 @@
          "Name": "JoinCgroup",
          "Params":
          {
            "Controller": "schedtune",
            "Controller": "cpu",
            "Path": "foreground"
          }
        }
@@ -130,7 +125,7 @@
          "Name": "JoinCgroup",
          "Params":
          {
            "Controller": "schedtune",
            "Controller": "cpu",
            "Path": "top-app"
          }
        }
@@ -143,7 +138,7 @@
          "Name": "JoinCgroup",
          "Params":
          {
            "Controller": "schedtune",
            "Controller": "cpu",
            "Path": "rt"
          }
        }
@@ -156,12 +151,25 @@
          "Name": "JoinCgroup",
          "Params":
          {
            "Controller": "schedtune",
            "Controller": "cpu",
            "Path": "camera-daemon"
          }
        }
      ]
    },
    {
      "Name": "NNApiHALPerformance",
      "Actions": [
        {
          "Name": "JoinCgroup",
          "Params":
          {
            "Controller": "cpu",
            "Path": "nnapi-hal"
          }
        }
      ]
    },

    {
      "Name": "CpuPolicySpread",
@@ -170,7 +178,7 @@
          "Name": "SetAttribute",
          "Params":
          {
            "Name": "STunePreferIdle",
            "Name": "UClampLatencySensitive",
            "Value": "1"
          }
        }
@@ -183,7 +191,7 @@
          "Name": "SetAttribute",
          "Params":
          {
            "Name": "STunePreferIdle",
            "Name": "UClampLatencySensitive",
            "Value": "0"
          }
        }