sm8150-common: Replace writepid with task_profiles command

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: Ibb56d2379c42e5ed4b2f15c1b04d5fb163b48678
This commit is contained in:
Sebastiano Barezzi committed 2026-09-15 23:03:07 +02:00
1 parent 748d662bf8
commit eea30efdd3
3 files changed
+3 -3

No files matched your search

@@ -23,5 +23,5 @@ service vendor.drm-widevine-hal-1-3 /vendor/bin/hw/android.hardware.drm@1.3-serv
user media
group media mediadrm drmrpc system
ioprio rt 4
writepid /dev/cpuset/foreground/tasks
task_profiles ProcessCapacityHigh HighPerformance
capabilities SYS_NICE
@@ -7,7 +7,7 @@ service neuralnetworks_hal_service /vendor/bin/hw/android.hardware.neuralnetwork
class hal
user system
group system
writepid /dev/stune/nnapi-hal/tasks
task_profiles NNApiHALPerformance
#Below changes moved from init.target.rc as part of go/FR53051
on post-fs-data
@@ -3,5 +3,5 @@ service vendor-qti-media-c2-hal-1-0 /vendor/bin/hw/vendor.qti.media.c2@1.0-servi
user mediacodec
group mediadrm camera drmrpc system
ioprio rt 4
writepid /dev/cpuset/foreground/tasks
task_profiles ProcessCapacityHigh HighPerformance