sensors: Replace direct pid writes with setting task profiles for als service

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
This commit is contained in:
Fazil Sheik 2024-09-14 18:53:18 +05:30
parent bfdea70794
commit 98d3a3b0da
2 changed files with 2 additions and 2 deletions

View File

@ -2,4 +2,4 @@ service als_correction_service /system_ext/bin/als_correction_service
class hal
user system
group system
writepid /dev/cpuset/system-background/tasks
task_profiles ServiceCapacityLow

View File

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