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:
parent
bfdea70794
commit
98d3a3b0da
|
@ -2,4 +2,4 @@ service als_correction_service /system_ext/bin/als_correction_service
|
||||||
class hal
|
class hal
|
||||||
user system
|
user system
|
||||||
group system
|
group system
|
||||||
writepid /dev/cpuset/system-background/tasks
|
task_profiles ServiceCapacityLow
|
||||||
|
|
|
@ -2,6 +2,6 @@ service vendor.sensors-hal-2-1-multihal /vendor/bin/hw/android.hardware.sensors@
|
||||||
class hal
|
class hal
|
||||||
user system
|
user system
|
||||||
group system wakelock context_hub input
|
group system wakelock context_hub input
|
||||||
writepid /dev/cpuset/system-background/tasks
|
task_profiles ServiceCapacityLow
|
||||||
capabilities BLOCK_SUSPEND
|
capabilities BLOCK_SUSPEND
|
||||||
rlimit rtprio 10 10
|
rlimit rtprio 10 10
|
||||||
|
|
Loading…
Reference in New Issue