From 989d783e752e16b17229c911defbcbe7932c3f29 Mon Sep 17 00:00:00 2001 From: Philip Cuadra Date: Mon, 18 Apr 2016 11:30:54 -0700 Subject: 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 --- init.angler.rc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'init.angler.rc') 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 -- cgit v1.2.3