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

Commit 3caf60c2 authored by Suren Baghdasaryan's avatar Suren Baghdasaryan
Browse files

Replace direct pid writes with setting task profiles



For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
Change-Id: Id00370b25af973a4b3813a4a1d6ccbd1e555c87f
Merged-In: Id00370b25af973a4b3813a4a1d6ccbd1e555c87f
parent 6c96fda7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3,5 +3,5 @@ service cameraserver /system/bin/cameraserver
    user cameraserver
    group audio camera input drmrpc
    ioprio rt 4
    writepid /dev/cpuset/camera-daemon/tasks /dev/stune/top-app/tasks
    task_profiles CameraServiceCapacity MaxPerformance
    rlimit rtprio 10 10
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ service audioserver /system/bin/audioserver
    group audio camera drmrpc media mediadrm net_bt net_bt_admin net_bw_acct wakelock
    capabilities BLOCK_SUSPEND
    ioprio rt 4
    writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks
    task_profiles ProcessCapacityHigh HighPerformance
    onrestart restart vendor.audio-hal
    onrestart restart vendor.audio-hal-4-0-msd
    # Keep the original service names for backward compatibility
+1 −1
Original line number Diff line number Diff line
@@ -3,4 +3,4 @@ service media /system/bin/mediaserver
    user media
    group audio camera inet net_bt net_bt_admin net_bw_acct drmrpc mediadrm
    ioprio rt 4
    writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks
    task_profiles ProcessCapacityHigh HighPerformance
+1 −1
Original line number Diff line number Diff line
@@ -3,4 +3,4 @@ service mediametrics /system/bin/mediametrics
    user media
    group media
    ioprio rt 4
    writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks
    task_profiles ProcessCapacityHigh HighPerformance