summaryrefslogtreecommitdiff
path: root/rootdir/init.rc
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2016-02-02 02:13:31 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-02-02 02:13:31 +0000
commit88185f9ee8e15afdf69ca9374ff2608ab81a59ba (patch)
tree29a43b40e1f35c046d674c49da6de54b6244d7fc /rootdir/init.rc
parente7b92201d46d99bf8501a605860a7f0e1856798f (diff)
parent6647bb51301ea101b73e7431888f70bb35a4fabb (diff)
Merge "Enable top-app cpuset support."
Diffstat (limited to 'rootdir/init.rc')
-rw-r--r--rootdir/init.rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 438fe59ff..ee216faf6 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -173,17 +173,23 @@ on init
write /dev/cpuset/system-background/cpus 0
write /dev/cpuset/system-background/mems 0
+ mkdir /dev/cpuset/top-app
+ write /dev/cpuset/top-app/cpus 0
+ write /dev/cpuset/top-app/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
chown system system /dev/cpuset/background
chown system system /dev/cpuset/system-background
+ chown system system /dev/cpuset/top-app
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
chown system system /dev/cpuset/system-background/tasks
+ chown system system /dev/cpuset/top-app/tasks
# set system-background to 0775 so SurfaceFlinger can touch it
chmod 0775 /dev/cpuset/system-background
@@ -192,6 +198,7 @@ on init
chmod 0664 /dev/cpuset/foreground/boost/tasks
chmod 0664 /dev/cpuset/background/tasks
chmod 0664 /dev/cpuset/system-background/tasks
+ chmod 0664 /dev/cpuset/top-app/tasks
chmod 0664 /dev/cpuset/tasks