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

Commit dd50b2f4 authored by Suren Baghdasaryan's avatar Suren Baghdasaryan
Browse files

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: I249ecc45a001a69d73b06b77154f9b6e5f9964d9
parent e3dc2f88
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,6 +5,6 @@ service vendor.face-hal-1-0-default /vendor/bin/hw/android.hardware.biometrics.f
    class late_start
    user system
    group system
    writepid /dev/cpuset/foreground/tasks
    task_profiles ProcessCapacityHigh
    capabilities SYS_NICE
    rlimit rtprio 10 10
+1 −1
Original line number Diff line number Diff line
@@ -5,4 +5,4 @@ service vendor.fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.
    class late_start
    user system
    group system input uhid
    writepid /dev/cpuset/system-background/tasks
    task_profiles ServiceCapacityLow
+1 −1
Original line number Diff line number Diff line
@@ -6,4 +6,4 @@ service vendor.cas-hal-1-0 /vendor/bin/hw/android.hardware.cas@1.0-service-lazy
    user media
    group mediadrm drmrpc
    ioprio rt 4
    writepid /dev/cpuset/foreground/tasks
    task_profiles ProcessCapacityHigh
+1 −1
Original line number Diff line number Diff line
@@ -3,4 +3,4 @@ service vendor.cas-hal-1-0 /vendor/bin/hw/android.hardware.cas@1.0-service
    user media
    group mediadrm drmrpc
    ioprio rt 4
    writepid /dev/cpuset/foreground/tasks
    task_profiles ProcessCapacityHigh
+1 −1
Original line number Diff line number Diff line
@@ -7,4 +7,4 @@ service vendor.cas-hal-1-1 /vendor/bin/hw/android.hardware.cas@1.1-service-lazy
    user media
    group mediadrm drmrpc
    ioprio rt 4
    writepid /dev/cpuset/foreground/tasks
    task_profiles ProcessCapacityHigh
Loading