Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f04f22d authored by Suren Baghdasaryan's avatar Suren Baghdasaryan Committed by Alexander Martinz
Browse files

axolotl: 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: default avatarSuren Baghdasaryan <surenb@google.com>
Change-Id: Ibb56d2379c42e5ed4b2f15c1b04d5fb163b48678
parent 7a853de1
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -461,14 +461,14 @@ service vendor.sensors /vendor/bin/sscrpcd sensorspd
    user system
    group system wakelock
    capabilities BLOCK_SUSPEND
    writepid /dev/cpuset/system-background/tasks
    task_profiles ServiceCapacityLow

service vendor.sensors.qti /vendor/bin/sensors.qti
    class core
    user system
    group system
    disabled
    writepid /dev/cpuset/system-background/tasks
    task_profiles ServiceCapacityLow

on property:sys.sysctl.tcp_adv_win_scale=*
    write /proc/sys/net/ipv4/tcp_adv_win_scale ${sys.sysctl.tcp_adv_win_scale}
@@ -532,7 +532,7 @@ service cnss-daemon /system/vendor/bin/cnss-daemon -n -l
    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
@@ -559,7 +559,7 @@ service mlid /vendor/bin/mlid
    user gps
    group gps
    socket mlid stream 0666 gps gps
    writepid /dev/cpuset/system-background/tasks
    task_profiles ServiceCapacityLow

service loc_launcher /system/vendor/bin/loc_launcher
    class late_start
@@ -597,7 +597,7 @@ service vendor.atfwd /vendor/bin/ATFWD-daemon
    class late_start
    user system
    group system radio
    writepid /dev/cpuset/system-background/tasks
    task_profiles ServiceCapacityLow

service hostapd_fst /vendor/bin/hw/hostapd -dd -g /data/vendor/wifi/hostapd/global
    class main
@@ -678,7 +678,7 @@ service vendor.msm_irqbalance /vendor/bin/msm_irqbalance -f /system/vendor/etc/m
    class core
    user root
    group root
    writepid /dev/cpuset/system-background/tasks
    task_profiles ServiceCapacityLow

# service for USERDEBUG
service vendor.LKCore-dbg /vendor/bin/LKCore
+1 −1
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@ service thermal-engine /system/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 ppd /vendor/bin/mm-pp-dpps
    class late_start