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

Change-Id: Ic3db6564a360117d748fabcec29106e695e737a8
This commit is contained in:
Automerger Merge Worker 2020-03-17 16:24:31 +00:00
commit ab43bfb170
2 changed files with 32 additions and 1 deletions

View File

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

View File

@ -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