Replace direct pid writes with setting task profiles for bluetooth 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: Ie81da380a9343e098362f5fee5026799c4486e7e
This commit is contained in:
Suren Baghdasaryan 2020-04-30 13:27:38 -07:00
parent 75bea4b6dc
commit 4b644d33d7
2 changed files with 2 additions and 2 deletions

View file

@ -4,5 +4,5 @@ service vendor.bluetooth-1-0 /vendor/bin/hw/android.hardware.bluetooth@1.0-servi
capabilities BLOCK_SUSPEND NET_ADMIN SYS_NICE capabilities BLOCK_SUSPEND NET_ADMIN SYS_NICE
user bluetooth user bluetooth
group bluetooth group bluetooth
writepid /dev/stune/foreground/tasks task_profiles HighPerformance

View file

@ -5,5 +5,5 @@ service vendor.bluetooth-1-1 /vendor/bin/hw/android.hardware.bluetooth@1.1-servi
capabilities BLOCK_SUSPEND NET_ADMIN SYS_NICE capabilities BLOCK_SUSPEND NET_ADMIN SYS_NICE
user bluetooth user bluetooth
group bluetooth group bluetooth
writepid /dev/stune/foreground/tasks task_profiles HighPerformance