aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2021-06-17 19:22:24 -0700
committerSuren Baghdasaryan <surenb@google.com>2021-10-15 16:40:18 +0000
commit1938f90eb8f81c1b23ac6fbe9c802d2de6fec6c3 (patch)
tree941e07b0a4c8694e28eb1dfec9e9a5e147941565
parentc2fdae89e40e8ef360775ae3bcdaeab74eea2ccc (diff)
downloadplatform_system_memory_lmkd-master.tar.gz
platform_system_memory_lmkd-master.tar.bz2
platform_system_memory_lmkd-master.zip
Replace writepid with task_profiles command for cgroup migrationHEADmaster
writepid command usage to join a cgroup has been deprecated in favor of a more flexible approach using task_profiles. This way cgroup path is not hardcoded and cgroup changes can be easily made. Replace writepid with task_profiles command to migrate between cgroups. Bug: 191283136 Test: build and boot Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: I594a5fc5e988f812237bd226aaecefa5f1159d2d
-rw-r--r--lmkd.rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lmkd.rc b/lmkd.rc
index 6f90bcb..ba662b4 100644
--- a/lmkd.rc
+++ b/lmkd.rc
@@ -5,7 +5,7 @@ service lmkd /system/bin/lmkd
capabilities DAC_OVERRIDE KILL IPC_LOCK SYS_NICE SYS_RESOURCE
critical
socket lmkd seqpacket+passcred 0660 system system
- writepid /dev/cpuset/system-background/tasks
+ task_profiles ServiceCapacityLow
on property:lmkd.reinit=1
exec_background /system/bin/lmkd --reinit