diff --git a/rootdir/init.qcom.power.rc b/rootdir/init.qcom.power.rc index ecdae15..346a854 100644 --- a/rootdir/init.qcom.power.rc +++ b/rootdir/init.qcom.power.rc @@ -3,6 +3,15 @@ on boot # Set RPS mask write /sys/class/net/rmnet0/queues/rx-0/rps_cpus 2 + # Add a cpuset for the camera daemon + # we want all cores for camera + mkdir /dev/cpuset/camera-daemon + write /dev/cpuset/camera-daemon/cpus 0-7 + 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 and background cpusets # Reserve CPU 7 for the top app write /dev/cpuset/foreground/cpus 0-6