land: Add camera-daemon cpuset
cameraserver needs to live in its own cpuset on M/S. Change-Id: I1f04ed17d52dffb29d8b379e387c07d0f6ab3ea6
This commit is contained in:
parent
5adb48341b
commit
c2448db256
1 changed files with 9 additions and 0 deletions
|
@ -3,6 +3,15 @@ on boot
|
||||||
# Set RPS mask
|
# Set RPS mask
|
||||||
write /sys/class/net/rmnet0/queues/rx-0/rps_cpus 2
|
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
|
# Update foreground and background cpusets
|
||||||
# Reserve CPU 7 for the top app
|
# Reserve CPU 7 for the top app
|
||||||
write /dev/cpuset/foreground/cpus 0-6
|
write /dev/cpuset/foreground/cpus 0-6
|
||||||
|
|
Loading…
Reference in a new issue