aboutsummaryrefslogtreecommitdiff
path: root/rootdir
diff options
context:
space:
mode:
authorceltare21 <celtare21@gmail.com>2019-05-08 17:11:37 +0000
committerceltare21 <celtare21@gmail.com>2019-06-14 14:06:23 +0300
commitd5196b333931da8f6a85c0128c351a31d9ab67b7 (patch)
treea3875bc4dfdf7a4999d2f48812fadf6aed3e627c /rootdir
parente596bd6fbd2efd5bce01d1812bc964dfdbe667c4 (diff)
mata: ramdisk: Mount blkio and schedtune together
Signed-off-by: celtare21 <celtare21@gmail.com>
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/etc/init.performance.mata.rc11
1 files changed, 11 insertions, 0 deletions
diff --git a/rootdir/etc/init.performance.mata.rc b/rootdir/etc/init.performance.mata.rc
index c1b3a90d..ca985166 100644
--- a/rootdir/etc/init.performance.mata.rc
+++ b/rootdir/etc/init.performance.mata.rc
@@ -1,3 +1,14 @@
+on early-init
+ # mount schedtune and blkio together in "on early-init",
+ # so that mount schedtune in init.rc will fail
+ mkdir /dev/stune
+ mount cgroup none /dev/stune nodev noexec nosuid schedtune,blkio
+
+ mkdir /dev/stune/foreground
+ mkdir /dev/stune/background
+ mkdir /dev/stune/top-app
+ mkdir /dev/stune/rt
+
on init
# Disable UFS powersaving
write /sys/devices/soc/${ro.boot.bootdevice}/clkscale_enable 0