sm6150-common: Replace writepid with task_profiles command for cgroup migration
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 Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: Ibb56d2379c42e5ed4b2f15c1b04d5fb163b48678
This commit is contained in:
parent
32aba0f3bb
commit
4395b79e9f
@ -9,4 +9,4 @@ service vendor.livedisplay-hal-2-1 /vendor/bin/hw/vendor.lineage.livedisplay@2.1
|
||||
class late_start
|
||||
user system
|
||||
group system
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
task_profiles ServiceCapacityLow
|
||||
|
@ -237,20 +237,20 @@ service vendor.qrtr-ns /vendor/bin/qrtr-ns -f
|
||||
user vendor_qrtr
|
||||
group vendor_qrtr
|
||||
capabilities NET_BIND_SERVICE
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
task_profiles ServiceCapacityLow
|
||||
|
||||
service irsc_util /vendor/bin/irsc_util "/vendor/etc/sec_config"
|
||||
class core
|
||||
user root
|
||||
oneshot
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
task_profiles ServiceCapacityLow
|
||||
|
||||
service vendor.cnss-daemon /vendor/bin/cnss-daemon -n -l
|
||||
class late_start
|
||||
user system
|
||||
group system inet net_admin wifi
|
||||
capabilities NET_ADMIN
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
task_profiles ServiceCapacityLow
|
||||
|
||||
on property:sys.shutdown.requested=*
|
||||
write /sys/kernel/shutdown_wlan/shutdown 1
|
||||
@ -260,7 +260,7 @@ service vendor.loc_launcher /vendor/bin/loc_launcher
|
||||
class late_start
|
||||
user gps
|
||||
group gps
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
task_profiles ServiceCapacityLow
|
||||
|
||||
on property:persist.sys.xtra-daemon.enabled=*
|
||||
restart vendor.loc_launcher
|
||||
@ -285,7 +285,7 @@ service vendor.msm_irqbalance /vendor/bin/msm_irqbalance -f /vendor/etc/msm_irqb
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
task_profiles ServiceCapacityLow
|
||||
|
||||
service vendor.power_off_alarm /vendor/bin/power_off_alarm
|
||||
class core
|
||||
|
@ -139,20 +139,20 @@ service vendor.pd_mapper /vendor/bin/pd-mapper
|
||||
class core
|
||||
user system
|
||||
group system
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
task_profiles ServiceCapacityLow
|
||||
|
||||
service vendor.per_mgr /vendor/bin/pm-service
|
||||
class core
|
||||
user system
|
||||
group system
|
||||
ioprio rt 4
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
task_profiles ServiceCapacityLow
|
||||
|
||||
service vendor.per_proxy /vendor/bin/pm-proxy
|
||||
class core
|
||||
user system
|
||||
group system
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
task_profiles ServiceCapacityLow
|
||||
disabled
|
||||
|
||||
on property:init.svc.vendor.per_mgr=running
|
||||
@ -181,19 +181,19 @@ service vendor.thermal-engine /vendor/bin/thermal-engine
|
||||
socket thermal-recv-passive-client stream 0666 system system
|
||||
socket thermal-send-rule stream 0660 system system
|
||||
group root
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
task_profiles ServiceCapacityLow
|
||||
|
||||
service vendor.hvdcp_opti /vendor/bin/hvdcp_opti
|
||||
class main
|
||||
user root
|
||||
group system wakelock
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
task_profiles ServiceCapacityLow
|
||||
|
||||
service vendor.remosaic_daemon /vendor/bin/remosaic_daemon
|
||||
class late_start
|
||||
user camera
|
||||
group camera
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
task_profiles ServiceCapacityLow
|
||||
|
||||
service vendor.nv_mac /vendor/bin/nv_mac
|
||||
class main
|
||||
|
Loading…
Reference in New Issue
Block a user