diff options
Diffstat (limited to 'rootdir/init.rc')
-rw-r--r-- | rootdir/init.rc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index 91d6697b5..4a74a8fc8 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -52,6 +52,17 @@ on init chown root system /sys/fs/cgroup/memory/sw/tasks chmod 0660 /sys/fs/cgroup/memory/sw/tasks + # Create energy-aware scheduler tuning nodes + mkdir /sys/fs/cgroup/stune + mount cgroup none /sys/fs/cgroup/stune schedtune + mkdir /sys/fs/cgroup/stune/foreground + chown system system /sys/fs/cgroup/stune + chown system system /sys/fs/cgroup/stune/foreground + chown system system /sys/fs/cgroup/stune/tasks + chown system system /sys/fs/cgroup/stune/foreground/tasks + chmod 0664 /sys/fs/cgroup/stune/tasks + chmod 0664 /sys/fs/cgroup/stune/foreground/tasks + # Mount staging areas for devices managed by vold # See storage config details at http://source.android.com/tech/storage/ mount tmpfs tmpfs /mnt mode=0755,uid=0,gid=1000 @@ -163,13 +174,16 @@ on init 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/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 chmod 0664 /dev/cpuset/foreground/tasks chmod 0664 /dev/cpuset/foreground/boost/tasks chmod 0664 /dev/cpuset/background/tasks + chmod 0664 /dev/cpuset/system-background/tasks chmod 0664 /dev/cpuset/tasks |