Merge \\"Add support for background stune group.\\" into nyc-mr1-dev am: 531bdd5a2c

am: b386d72266

Change-Id: Ib0e2efeef7e015e0e8244e29a825bf3da50297a8
This commit is contained in:
Tim Murray 2016-07-12 02:46:06 +00:00 committed by android-build-merger
commit e43d1d523e
2 changed files with 5 additions and 1 deletions

View File

@ -145,7 +145,7 @@ static void __initialize(void) {
ta_schedboost_fd = open(filename, O_WRONLY | O_CLOEXEC);
filename = "/dev/stune/foreground/tasks";
fg_schedboost_fd = open(filename, O_WRONLY | O_CLOEXEC);
filename = "/dev/stune/tasks";
filename = "/dev/stune/background/tasks";
bg_schedboost_fd = open(filename, O_WRONLY | O_CLOEXEC);
#endif
}

View File

@ -50,15 +50,19 @@ on init
mkdir /dev/stune
mount cgroup none /dev/stune schedtune
mkdir /dev/stune/foreground
mkdir /dev/stune/background
mkdir /dev/stune/top-app
chown system system /dev/stune
chown system system /dev/stune/foreground
chown system system /dev/stune/background
chown system system /dev/stune/top-app
chown system system /dev/stune/tasks
chown system system /dev/stune/foreground/tasks
chown system system /dev/stune/background/tasks
chown system system /dev/stune/top-app/tasks
chmod 0664 /dev/stune/tasks
chmod 0664 /dev/stune/foreground/tasks
chmod 0664 /dev/stune/background/tasks
chmod 0664 /dev/stune/top-app/tasks
# Mount staging areas for devices managed by vold