sm6225-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: I249ecc45a001a69d73b06b77154f9b6e5f9964d9
This commit is contained in:
Suren Baghdasaryan 2021-06-17 18:58:30 -07:00 committed by Michael Bestas
parent fde8c98ecb
commit b6c60af207
No known key found for this signature in database
GPG key ID: CC95044519BE6669

View file

@ -557,7 +557,7 @@ service vendor.sensors-hal-2-0-multihal /vendor/bin/hw/android.hardware.sensors@
class hal
user system
group system wakelock context_hub input uhid
writepid /dev/cpuset/system-background/tasks
task_profiles ServiceCapacityLow
capabilities BLOCK_SUSPEND
rlimit rtprio 10 10
@ -567,7 +567,7 @@ service vendor.sensors-hal-2-1-multihal /vendor/bin/hw/android.hardware.sensors@
class hal
user system
group system wakelock context_hub input uhid
writepid /dev/cpuset/system-background/tasks
task_profiles ServiceCapacityLow
capabilities BLOCK_SUSPEND
rlimit rtprio 10 10