summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2015-09-01 21:23:35 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-09-01 21:23:35 +0000
commit4a1f02eaa3e35ac2d975a2e632880ac26daff3bb (patch)
tree123b6f01a54854df9ee0a6b6fd050cfba72c882a /rootdir
parent6442153cbc673ee2f3799ed56eb4965f09ae40b8 (diff)
parent3985dda1c3e668d76ecb689cb89ca8ff6614c7e9 (diff)
downloadsystem_core-4a1f02eaa3e35ac2d975a2e632880ac26daff3bb.zip
system_core-4a1f02eaa3e35ac2d975a2e632880ac26daff3bb.tar.gz
system_core-4a1f02eaa3e35ac2d975a2e632880ac26daff3bb.tar.bz2
Merge "Add foreground/boost cpuset." into mnc-dr-dev
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index de143b7..72f2144 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -140,20 +140,26 @@ on init
mkdir /dev/cpuset
mount cpuset none /dev/cpuset
mkdir /dev/cpuset/foreground
+ mkdir /dev/cpuset/foreground/boost
mkdir /dev/cpuset/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/foreground/mems 0
+ write /dev/cpuset/foreground/boost/mems 0
write /dev/cpuset/background/mems 0
chown system system /dev/cpuset
chown system system /dev/cpuset/foreground
+ chown system system /dev/cpuset/foreground/boost
chown system system /dev/cpuset/background
chown system system /dev/cpuset/tasks
chown system system /dev/cpuset/foreground/tasks
+ chown system system /dev/cpuset/foreground/boost/tasks
chown system system /dev/cpuset/background/tasks
chmod 0664 /dev/cpuset/foreground/tasks
+ chmod 0664 /dev/cpuset/foreground/boost/tasks
chmod 0664 /dev/cpuset/background/tasks
chmod 0664 /dev/cpuset/tasks