summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2015-10-20 22:14:47 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-10-20 22:14:47 +0000
commit538697b3153a9a71bdfd197d0461a74d29fd2fae (patch)
tree028e5e2518388c7caed76fa919d19ecca1d07210 /rootdir
parentfd31be08f254b70278f97dcbc432af2ee67c0848 (diff)
parente56b566401aad8e7175306b2969f78baa0b8f9c6 (diff)
downloadcore-538697b3153a9a71bdfd197d0461a74d29fd2fae.tar.gz
core-538697b3153a9a71bdfd197d0461a74d29fd2fae.tar.bz2
core-538697b3153a9a71bdfd197d0461a74d29fd2fae.zip
Reorder init.rc to avoid a kernel warning. am: f429d37807
am: e56b566401 * commit 'e56b566401aad8e7175306b2969f78baa0b8f9c6': Reorder init.rc to avoid a kernel warning.
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc22
1 files changed, 13 insertions, 9 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index b80c45469..d3381e693 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -138,23 +138,27 @@ on init
# sets up initial cpusets for ActivityManager
mkdir /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
+ write /dev/cpuset/foreground/cpus 0
+ write /dev/cpuset/foreground/mems 0
mkdir /dev/cpuset/foreground/boost
+ write /dev/cpuset/foreground/boost/cpus 0
+ write /dev/cpuset/foreground/boost/mems 0
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
# 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
- # 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/foreground/mems 0
- write /dev/cpuset/foreground/boost/mems 0
- write /dev/cpuset/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/foreground
chown system system /dev/cpuset/foreground/boost