From 47127bef8aed9da82b99b6cf0ddb05fbb598be36 Mon Sep 17 00:00:00 2001 From: Suren Baghdasaryan Date: Thu, 17 Jun 2021 18:58:30 -0700 Subject: [PATCH] Pong: sensors: 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: I249ecc45a001a69d73b06b77154f9b6e5f9964d9 Signed-off-by: chandu078 --- sensors/android.hardware.sensors@2.1-service.nt-multihal.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensors/android.hardware.sensors@2.1-service.nt-multihal.rc b/sensors/android.hardware.sensors@2.1-service.nt-multihal.rc index 03e3e9d..999a766 100644 --- a/sensors/android.hardware.sensors@2.1-service.nt-multihal.rc +++ b/sensors/android.hardware.sensors@2.1-service.nt-multihal.rc @@ -2,6 +2,6 @@ service vendor.sensors-hal-2-1-multihal /vendor/bin/hw/android.hardware.sensors@ class hal user system group system wakelock context_hub - writepid /dev/cpuset/system-background/tasks + task_profiles ServiceCapacityLow capabilities BLOCK_SUSPEND rlimit rtprio 10 10