sdm660-common: Camera: init.target: Moved camera-daemon creation to on-init.

Issue: cameraserver or camera-provider service is not able to
      write pid's to cpuset/camera-daemon.

Solution:
    1) Increased the cpu to 0-7
    2) Moved camera-daemon folder creation from on-boot to on-init.
CRs-fixed:2200628

Change-Id: Ifc80c09ae09b353b3c8a0603f14e5ff4206d6796
This commit is contained in:
Abhinav Sohane 2018-03-16 20:31:53 +05:30 committed by Max Weffers
parent 5d5e94fe1d
commit 34382b7e82
No known key found for this signature in database
GPG key ID: 795F73D22FB93FAE

View file

@ -41,6 +41,13 @@ on init
write /dev/stune/foreground/schedtune.colocate 0
write /dev/stune/top-app/schedtune.colocate 1
# Add a cpuset for the camera daemon
mkdir /dev/cpuset/camera-daemon 0750 cameraserver cameraserver
write /dev/cpuset/camera-daemon/cpus 0-7
write /dev/cpuset/camera-daemon/mems 0
chown cameraserver cameraserver /dev/cpuset/camera-daemon/tasks
chmod 0660 /dev/cpuset/camera-daemon/tasks
on fs
wait /dev/block/platform/soc/${ro.boot.bootdevice}
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice