Skip to content
Snippets Groups Projects
Commit f429d378 authored by Tim Murray's avatar Tim Murray
Browse files

Reorder init.rc to avoid a kernel warning.

3.18 has a warning in dmesg that appears when the parent cpuset's cpus
and mems are changed to something other than what the child has. Reorder
init.rc to prevent this warning from appearing.

bug 24941443

Change-Id: I49d8394063b23dce03222dcc9ddccdc32bb97ea2
parent 08cf0e55
Branches
Tags
No related merge requests found
...@@ -140,23 +140,27 @@ on init ...@@ -140,23 +140,27 @@ on init
# sets up initial cpusets for ActivityManager # sets up initial cpusets for ActivityManager
mkdir /dev/cpuset mkdir /dev/cpuset
mount cpuset none /dev/cpuset mount cpuset none /dev/cpuset
# this ensures that the cpusets are present and usable, but the device's
# init.rc must actually set the correct cpus
mkdir /dev/cpuset/foreground mkdir /dev/cpuset/foreground
write /dev/cpuset/foreground/cpus 0
write /dev/cpuset/foreground/mems 0
mkdir /dev/cpuset/foreground/boost mkdir /dev/cpuset/foreground/boost
write /dev/cpuset/foreground/boost/cpus 0
write /dev/cpuset/foreground/boost/mems 0
mkdir /dev/cpuset/background mkdir /dev/cpuset/background
write /dev/cpuset/background/cpus 0
write /dev/cpuset/background/mems 0
# system-background is for system tasks that should only run on # system-background is for system tasks that should only run on
# little cores, not on bigs # little cores, not on bigs
# to be used only by init, so don't change the permissions # to be used only by init, so don't change system-bg permissions
mkdir /dev/cpuset/system-background mkdir /dev/cpuset/system-background
# this ensures that the cpusets are present and usable, but the device's
# init.rc must actually set the correct cpus
write /dev/cpuset/foreground/cpus 0
write /dev/cpuset/foreground/boost/cpus 0
write /dev/cpuset/background/cpus 0
write /dev/cpuset/system-background/cpus 0 write /dev/cpuset/system-background/cpus 0
write /dev/cpuset/foreground/mems 0
write /dev/cpuset/foreground/boost/mems 0
write /dev/cpuset/background/mems 0
write /dev/cpuset/system-background/mems 0 write /dev/cpuset/system-background/mems 0
# change permissions for all cpusets we'll touch at runtime
chown system system /dev/cpuset chown system system /dev/cpuset
chown system system /dev/cpuset/foreground chown system system /dev/cpuset/foreground
chown system system /dev/cpuset/foreground/boost chown system system /dev/cpuset/foreground/boost
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment