Skip to content

Commit

Permalink
cm: Create cgroup mount point for BFQ
Browse files Browse the repository at this point in the history
The global init.rc no longer creates this for us in N,
but we still need it for BFQ cgroups.

Thus, create the mount point in the CM vendor init.rc.

Change-Id: Ice5ff15737329aefd1dad2401bb530a18008fc4d
  • Loading branch information
zwliew authored and Gerrit Code Review committed Sep 8, 2016
1 parent 087ec83 commit c4e4e0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prebuilt/common/etc/init.local.rc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on init
export ANDROID_CACHE /cache
export TERMINFO /system/etc/terminfo

# Create cgroup mount point for BFQ
mount tmpfs none /sys/fs/cgroup mode=0750,uid=0,gid=1000

# Set up the BFQIO hierarchy
chmod 0755 /sys/fs/cgroup
mkdir /sys/fs/cgroup/bfqio 0755 root system
Expand Down

0 comments on commit c4e4e0d

Please sign in to comment.