diff options
author | Tim Murray <timmurray@google.com> | 2015-08-25 00:30:55 -0700 |
---|---|---|
committer | Tim Murray <timmurray@google.com> | 2015-08-25 00:31:54 -0700 |
commit | 3985dda1c3e668d76ecb689cb89ca8ff6614c7e9 (patch) | |
tree | 54069685199a8454d1f031e6362d2011ae4c6731 /rootdir | |
parent | a77a0487525df3add570605e58a7eb3a03eca6a8 (diff) | |
download | system_core-3985dda1c3e668d76ecb689cb89ca8ff6614c7e9.zip system_core-3985dda1c3e668d76ecb689cb89ca8ff6614c7e9.tar.gz system_core-3985dda1c3e668d76ecb689cb89ca8ff6614c7e9.tar.bz2 |
Add foreground/boost cpuset.
This is used for app launches (and maybe other high priority tasks
in the future). It's to be set to whatever cores should be used
for short term high-priority tasks.
bug 21915482
Change-Id: Id0ab0499146c09e860b97f4cb8095834cb12dd50
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.rc | 6 |
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 |