sdm660-common: 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 <surenb@google.com>
Change-Id: If0a64b9f335ad13f65522361b125cab951002a2c
Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
Suren Baghdasaryan 2021-10-09 00:59:30 +02:00 committed by pix106
parent 5a2083830c
commit 96b67cba6d
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ service vendor.fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.
class late_start
user system
group system uhid input
writepid /dev/cpuset/system-background/tasks
task_profiles ServiceCapacityLow
service vendor.goodix_script /vendor/bin/init.goodix.sh
class late_start

View file

@ -597,6 +597,6 @@ service vendor.audio-hal /vendor/bin/hw/android.hardware.audio.service
group audio camera drmrpc inet media mediadrm net_bt net_bt_admin net_bw_acct oem_2901 wakelock
capabilities BLOCK_SUSPEND
ioprio rt 4
writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks
task_profiles ProcessCapacityHigh HighPerformance
socket audio_hw_socket seqpacket 0666 system system
onrestart restart audioserver