sm6375-common: Replace direct pid writes with setting task profiles for audio interfaces

For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ide373c283359cf4b73af4cb0813d8c0306942595
This commit is contained in:
Suren Baghdasaryan 2024-07-18 20:16:00 +05:30 committed by Anand S
parent 1c76650adc
commit b721be0fd8
No known key found for this signature in database
GPG key ID: 3B2983FA448B3D61

View file

@ -660,5 +660,5 @@ 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 group audio camera drmrpc inet media mediadrm net_bt net_bt_admin net_bw_acct oem_2901 wakelock
capabilities BLOCK_SUSPEND capabilities BLOCK_SUSPEND
ioprio rt 4 ioprio rt 4
writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks task_profiles ProcessCapacityHigh HighPerformance
onrestart restart audioserver onrestart restart audioserver