diff options
author | Philip Cuadra <philipcuadra@google.com> | 2016-04-18 11:30:54 -0700 |
---|---|---|
committer | Philip Cuadra <philipcuadra@google.com> | 2016-04-18 16:24:57 -0700 |
commit | 989d783e752e16b17229c911defbcbe7932c3f29 (patch) | |
tree | 6c1529ab28ef4590e46ed9f5ec9d31f3ea06b6d8 | |
parent | 3e5f049d0fe7f9b6c9872871365c89043b998a0c (diff) | |
download | angler-989d783e752e16b17229c911defbcbe7932c3f29.tar.gz |
Add cpuset for camera daemon, allow it to use CPUs 0-3 on Angler.
While taking a video, EIS needs more cpu horsepower. Allow the camera
daemon to run on CPU 3. Camera daemon is only doing heavy work while
camera is on, so it can be a static assignment.
Bug 28238783
Bug 27899291
Change-Id: I4017d25d74aa1654e01f0cda6e03fb47bdb7ab1c
-rwxr-xr-x | init.angler.rc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/init.angler.rc b/init.angler.rc index e41acb3..7f1d641 100755 --- a/init.angler.rc +++ b/init.angler.rc @@ -68,13 +68,23 @@ on boot # Enable DEBUG_SUSPEND, DEBUG_EXIT_SUSPEND, and DEBUG_WAKEUP write /sys/module/wakelock/parameters/debug_mask 7 + # add a cpuset for the camera daemon + # we want all the little cores for camera + mkdir /dev/cpuset/camera-daemon + write /dev/cpuset/camera-daemon/cpus 0 + write /dev/cpuset/camera-daemon/mems 0 + chown system system /dev/cpuset/camera-daemon + chown system system /dev/cpuset/camera-daemon/tasks + chmod 0664 /dev/cpuset/camera-daemon/tasks + # update foreground cpuset now that processors are up - # reserve CPU 3 for the top app + # reserve CPU 3 for the top app and camera daemon write /dev/cpuset/foreground/cpus 0-2,4-7 write /dev/cpuset/foreground/boost/cpus 4-7 write /dev/cpuset/background/cpus 0 write /dev/cpuset/system-background/cpus 0-2 write /dev/cpuset/top-app/cpus 0-7 + write /dev/cpuset/camera-daemon/cpus 0-3 # setup permissions for fb0 related nodes chown radio radio /sys/class/graphics/fb0/dynamic_dsitiming @@ -349,7 +359,7 @@ service qcamerasvr /vendor/bin/mm-qcamera-daemon class late_start user camera group camera system inet input graphics - writepid /dev/cpuset/system-background/tasks + writepid /dev/cpuset/camera-daemon/tasks service fingerprintd /system/bin/fingerprintd class late_start |