Skip to content

Commit

Permalink
NLA: init: create camera-daemon stune cgroup
Browse files Browse the repository at this point in the history
Create an stune cgroup for the camera-daemon
so it can be tuned independently of top-app
or foreground.

Bug: 136608042
Test: boot and look at camera traces with different
      stune settings

Change-Id: I2c59ff237508dacf66f632e1334599b44222ab69
  • Loading branch information
John Dias authored and Niemandausduisburg committed Jul 28, 2023
1 parent 5e52c96 commit 10830a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rootdir/etc/init.target.rc
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,14 @@ on boot
chown cameraserver cameraserver /dev/cpuset/camera-daemon
chown cameraserver cameraserver /dev/cpuset/camera-daemon/tasks
chmod 0660 /dev/cpuset/camera-daemon/tasks

# create an stune group for camera-specific processes
mkdir /dev/stune/camera-daemon
write /dev/stune/camera-daemon/schedtune.prefer_idle 1
write /dev/stune/camera-daemon/schedtune.boost 0
chown system system /dev/stune/camera-daemon
chown system system /dev/stune/camera-daemon/tasks
chmod 0664 /dev/stune/camera-daemon/tasks

# Set fingerprint device permissions
chown system system /dev/goodix_fp
Expand Down

0 comments on commit 10830a9

Please sign in to comment.