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:
Suren Baghdasaryan 2021-06-17 18:42:44 -07:00 committed by basamaryan
parent 32aba0f3bb
commit 4395b79e9f
No known key found for this signature in database
GPG Key ID: 0A28C6D8648B81DD
3 changed files with 12 additions and 12 deletions

View File

@ -9,4 +9,4 @@ service vendor.livedisplay-hal-2-1 /vendor/bin/hw/vendor.lineage.livedisplay@2.1
class late_start class late_start
user system user system
group system group system
writepid /dev/cpuset/system-background/tasks task_profiles ServiceCapacityLow

View File

@ -237,20 +237,20 @@ service vendor.qrtr-ns /vendor/bin/qrtr-ns -f
user vendor_qrtr user vendor_qrtr
group vendor_qrtr group vendor_qrtr
capabilities NET_BIND_SERVICE capabilities NET_BIND_SERVICE
writepid /dev/cpuset/system-background/tasks task_profiles ServiceCapacityLow
service irsc_util /vendor/bin/irsc_util "/vendor/etc/sec_config" service irsc_util /vendor/bin/irsc_util "/vendor/etc/sec_config"
class core class core
user root user root
oneshot oneshot
writepid /dev/cpuset/system-background/tasks task_profiles ServiceCapacityLow
service vendor.cnss-daemon /vendor/bin/cnss-daemon -n -l service vendor.cnss-daemon /vendor/bin/cnss-daemon -n -l
class late_start class late_start
user system user system
group system inet net_admin wifi group system inet net_admin wifi
capabilities NET_ADMIN capabilities NET_ADMIN
writepid /dev/cpuset/system-background/tasks task_profiles ServiceCapacityLow
on property:sys.shutdown.requested=* on property:sys.shutdown.requested=*
write /sys/kernel/shutdown_wlan/shutdown 1 write /sys/kernel/shutdown_wlan/shutdown 1
@ -260,7 +260,7 @@ service vendor.loc_launcher /vendor/bin/loc_launcher
class late_start class late_start
user gps user gps
group gps group gps
writepid /dev/cpuset/system-background/tasks task_profiles ServiceCapacityLow
on property:persist.sys.xtra-daemon.enabled=* on property:persist.sys.xtra-daemon.enabled=*
restart vendor.loc_launcher restart vendor.loc_launcher
@ -285,7 +285,7 @@ service vendor.msm_irqbalance /vendor/bin/msm_irqbalance -f /vendor/etc/msm_irqb
class core class core
user root user root
group root group root
writepid /dev/cpuset/system-background/tasks task_profiles ServiceCapacityLow
service vendor.power_off_alarm /vendor/bin/power_off_alarm service vendor.power_off_alarm /vendor/bin/power_off_alarm
class core class core

View File

@ -139,20 +139,20 @@ service vendor.pd_mapper /vendor/bin/pd-mapper
class core class core
user system user system
group system group system
writepid /dev/cpuset/system-background/tasks task_profiles ServiceCapacityLow
service vendor.per_mgr /vendor/bin/pm-service service vendor.per_mgr /vendor/bin/pm-service
class core class core
user system user system
group system group system
ioprio rt 4 ioprio rt 4
writepid /dev/cpuset/system-background/tasks task_profiles ServiceCapacityLow
service vendor.per_proxy /vendor/bin/pm-proxy service vendor.per_proxy /vendor/bin/pm-proxy
class core class core
user system user system
group system group system
writepid /dev/cpuset/system-background/tasks task_profiles ServiceCapacityLow
disabled disabled
on property:init.svc.vendor.per_mgr=running 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-recv-passive-client stream 0666 system system
socket thermal-send-rule stream 0660 system system socket thermal-send-rule stream 0660 system system
group root group root
writepid /dev/cpuset/system-background/tasks task_profiles ServiceCapacityLow
service vendor.hvdcp_opti /vendor/bin/hvdcp_opti service vendor.hvdcp_opti /vendor/bin/hvdcp_opti
class main class main
user root user root
group system wakelock group system wakelock
writepid /dev/cpuset/system-background/tasks task_profiles ServiceCapacityLow
service vendor.remosaic_daemon /vendor/bin/remosaic_daemon service vendor.remosaic_daemon /vendor/bin/remosaic_daemon
class late_start class late_start
user camera user camera
group camera group camera
writepid /dev/cpuset/system-background/tasks task_profiles ServiceCapacityLow
service vendor.nv_mac /vendor/bin/nv_mac service vendor.nv_mac /vendor/bin/nv_mac
class main class main