diff --git a/libcutils/sched_policy.c b/libcutils/sched_policy.c index 9039620ec..6e6a9ebd4 100644 --- a/libcutils/sched_policy.c +++ b/libcutils/sched_policy.c @@ -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 } diff --git a/rootdir/init.rc b/rootdir/init.rc index c75ec29b7..7145dfc63 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -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