From 1938f90eb8f81c1b23ac6fbe9c802d2de6fec6c3 Mon Sep 17 00:00:00 2001 From: Suren Baghdasaryan Date: Thu, 17 Jun 2021 19:22:24 -0700 Subject: [PATCH] Replace writepid with task_profiles command for cgroup migration 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 Change-Id: I594a5fc5e988f812237bd226aaecefa5f1159d2d --- lmkd.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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