aboutsummaryrefslogtreecommitdiff
path: root/rootdir/etc/init.qcom.power.rc
diff options
context:
space:
mode:
authordavidevinavil <davidevinavil@gmail.com>2017-01-13 02:08:26 +0100
committerdavidevinavil <davidevinavil@gmail.com>2017-01-14 15:53:52 +0100
commit8ca30a0f4d27f77651489076970c26d56f90c854 (patch)
treee0b46e92fe7fee62f0d2fc25d700ad92e66806c9 /rootdir/etc/init.qcom.power.rc
parenta6adbf2778d10b866053a44f24ff550a74298d6e (diff)
z2_plus: Update ramdisk
Change-Id: I85dc9835d5d669306044b6bf210baeb170747639
Diffstat (limited to 'rootdir/etc/init.qcom.power.rc')
-rwxr-xr-xrootdir/etc/init.qcom.power.rc59
1 files changed, 7 insertions, 52 deletions
diff --git a/rootdir/etc/init.qcom.power.rc b/rootdir/etc/init.qcom.power.rc
index 50ba17e..fe2351f 100755
--- a/rootdir/etc/init.qcom.power.rc
+++ b/rootdir/etc/init.qcom.power.rc
@@ -1,56 +1,11 @@
-on init
- # sets up initial cpusets for ActivityManager
- mkdir /dev/cpuset
- mount cpuset none /dev/cpuset
-
- # this ensures that the cpusets are present and usable, but the device's
- # init.rc must actually set the correct cpus
- mkdir /dev/cpuset/foreground
- write /dev/cpuset/foreground/cpus 0
- write /dev/cpuset/foreground/mems 0
- mkdir /dev/cpuset/foreground/boost
- write /dev/cpuset/foreground/boost/cpus 0
- write /dev/cpuset/foreground/boost/mems 0
- mkdir /dev/cpuset/background
- write /dev/cpuset/background/cpus 0
- write /dev/cpuset/background/mems 0
-
- # system-background is for system tasks that should only run on
- # little cores, not on bigs
- # to be used only by init, so don't change system-bg permissions
- mkdir /dev/cpuset/system-background
- write /dev/cpuset/system-background/cpus 0
- write /dev/cpuset/system-background/mems 0
-
- mkdir /dev/cpuset/top-app
- write /dev/cpuset/top-app/cpus 0
- write /dev/cpuset/top-app/mems 0
-
- # change permissions for all cpusets we'll touch at runtime
- chown system system /dev/cpuset
- 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/top-app
- 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
- chown system system /dev/cpuset/top-app/tasks
-
- # set system-background to 0775 so SurfaceFlinger can touch it
- chmod 0775 /dev/cpuset/system-background
-
- 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/top-app/tasks
- chmod 0664 /dev/cpuset/tasks
-
on boot
+ # Update foreground and background cpusets
+ write /dev/cpuset/foreground/cpus 0-3
+ write /dev/cpuset/foreground/boost/cpus 0-3
+ write /dev/cpuset/background/cpus 0-3
+ write /dev/cpuset/system-background/cpus 0-3
+ write /dev/cpuset/top-app/cpus 0-3
+
# Enable sched boost
write /proc/sys/kernel/sched_boost 1