sdm660-common: rootdir: set task_profiles for common background tasks
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 Co-authored-by: Suren Baghdasaryan <surenb@google.com> Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
parent
0348e50c0a
commit
901ff5c8a1
2 changed files with 4 additions and 0 deletions
|
@ -58,6 +58,7 @@ service vendor.fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.
|
|||
class late_start
|
||||
user system
|
||||
group system uhid input
|
||||
task_profiles ServiceCapacityLow
|
||||
|
||||
service vendor.goodix_script /vendor/bin/init.goodix.sh
|
||||
class late_start
|
||||
|
|
|
@ -499,6 +499,7 @@ service vendor.sensors.qti /vendor/bin/sensors.qti
|
|||
class core
|
||||
user system
|
||||
group system
|
||||
task_profiles ServiceCapacityLow
|
||||
|
||||
# Adjust socket buffer to enlarge TCP receive window for high bandwidth
|
||||
# but only if ro.data.large_tcp_window_size property is set.
|
||||
|
@ -550,6 +551,7 @@ service cnss-daemon /system/vendor/bin/cnss-daemon -n -l
|
|||
user system
|
||||
group system inet net_admin wifi
|
||||
capabilities NET_ADMIN
|
||||
task_profiles ServiceCapacityLow
|
||||
|
||||
on property:sys.shutdown.requested=*
|
||||
write /sys/kernel/shutdown_wlan/shutdown 1
|
||||
|
@ -566,6 +568,7 @@ service mlid /vendor/bin/mlid
|
|||
user gps
|
||||
group gps
|
||||
socket mlid stream 0666 gps gps
|
||||
task_profiles ServiceCapacityLow
|
||||
|
||||
service loc_launcher /system/vendor/bin/loc_launcher
|
||||
class late_start
|
||||
|
|
Loading…
Reference in a new issue