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: Icbf3e66e61e7ebb570ac3aba5f1cf9e10ef6720d
Merged-In: Icbf3e66e61e7ebb570ac3aba5f1cf9e10ef6720d
This commit is contained in:
Suren Baghdasaryan
2022-03-22 15:59:54 +00:00
parent 0530d32826
commit dd1221d2d4
2 changed files with 2 additions and 2 deletions

View File

@@ -7,4 +7,4 @@ service vendor.tuner-hal-1-1 /vendor/bin/hw/android.hardware.tv.tuner@1.1-servic
user media
group mediadrm drmrpc
ioprio rt 4
writepid /dev/cpuset/foreground/tasks
task_profiles ProcessCapacityHigh

View File

@@ -3,5 +3,5 @@ service vendor.tuner-hal-1-1 /vendor/bin/hw/android.hardware.tv.tuner@1.1-servic
user media
group mediadrm drmrpc
ioprio rt 4
writepid /dev/cpuset/foreground/tasks
task_profiles ProcessCapacityHigh
onrestart restart media.tuner