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

Commit 3eb99ecf authored by Marco Ballesio's avatar Marco Ballesio Committed by Android (Google) Code Review
Browse files

Merge "freezer: allow dynamic changes to freezer.state" into rvc-dev

parents 054e6a38 c1e763a9
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
@@ -49,6 +49,11 @@
      "Name": "UClampMax",
      "Controller": "cpu",
      "File": "cpu.uclamp.max"
    },
    {
      "Name": "FreezerState",
      "Controller": "freezer",
      "File": "frozen/freezer.state"
    }
  ],

@@ -518,6 +523,32 @@
          }
        }
      ]
    },
    {
      "Name": "FreezerThawed",
      "Actions": [
        {
          "Name": "SetAttribute",
          "Params":
          {
            "Name": "FreezerState",
            "Value": "THAWED"
          }
        }
      ]
    },
    {
      "Name": "FreezerFrozen",
      "Actions": [
        {
          "Name": "SetAttribute",
          "Params":
          {
            "Name": "FreezerState",
            "Value": "FROZEN"
          }
        }
      ]
    }
  ],

+1 −1
Original line number Diff line number Diff line
@@ -324,7 +324,7 @@ on init
    chown system system /dev/freezer/frozen/freezer.state
    chown system system /dev/freezer/frozen/cgroup.procs

    chmod 0444 /dev/freezer/frozen/freezer.state
    chmod 0664 /dev/freezer/frozen/freezer.state

    # make the PSI monitor accessible to others
    chown system system /proc/pressure/memory