aboutsummaryrefslogtreecommitdiff
path: root/rootdir
diff options
context:
space:
mode:
authorDavide Garberi <dade.garberi@gmail.com>2018-01-21 14:46:42 +0100
committerDavide Garberi <dade.garberi@gmail.com>2018-01-21 14:51:12 +0100
commitcea6460fc2241d1772f14e2c580867691d938bab (patch)
tree09e7594a2ca1b4ce89b29fa5c6e104b053f5218f /rootdir
parent7b56d29838169ebcade819d411a2c0254ef77680 (diff)
msm8996-common: rootdir: Stop using dev.bootcomplete in favor of sys.boot_completed
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Diffstat (limited to 'rootdir')
-rwxr-xr-xrootdir/etc/init.qcom.power.rc21
-rwxr-xr-xrootdir/etc/init.qcom.rc7
2 files changed, 14 insertions, 14 deletions
diff --git a/rootdir/etc/init.qcom.power.rc b/rootdir/etc/init.qcom.power.rc
index 0eb691b..27d57ca 100755
--- a/rootdir/etc/init.qcom.power.rc
+++ b/rootdir/etc/init.qcom.power.rc
@@ -30,6 +30,9 @@ on charger
write /sys/module/lpm_levels/parameters/sleep_disabled 0
on enable-low-power
+ # Set ioscheduler
+ setprop sys.io.scheduler "bfq"
+
# Disable thermal hotplug to switch governor
write /sys/module/msm_thermal/core_control/enabled 0
@@ -120,6 +123,13 @@ on enable-low-power
write /proc/sys/vm/swappiness 5
write /proc/sys/vm/vfs_cache_pressure 60
+ # Update cpusets now that boot is complete and we want better load balancing
+ write /dev/cpuset/top-app/cpus 0-3
+ write /dev/cpuset/foreground/boost/cpus 0-2
+ write /dev/cpuset/foreground/cpus 0-2
+ write /dev/cpuset/background/cpus 0
+ write /dev/cpuset/system-background/cpus 0-2
+
service charger /charger
class charger
group system graphics
@@ -128,14 +138,5 @@ service charger /charger
on property:init.svc.recovery=running
trigger enable-low-power
-on property:dev.bootcomplete=1
- # Set ioscheduler
- setprop sys.io.scheduler "bfq"
-
- # Update cpusets now that boot is complete and we want better load balancing
- write /dev/cpuset/top-app/cpus 0-3
- write /dev/cpuset/foreground/boost/cpus 0-2
- write /dev/cpuset/foreground/cpus 0-2
- write /dev/cpuset/background/cpus 0
- write /dev/cpuset/system-background/cpus 0-2
+on property:sys.boot_completed=1
trigger enable-low-power
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index bf00cd8..3664578 100755
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -525,10 +525,6 @@ on post-fs-data
chown radio radio /data/vendor/radio/db_check_done
chmod 0660 /data/vendor/radio/db_check_done
-on property:dev.bootcomplete=1
- # Selinux status in settings
- chmod 0644 /sys/fs/selinux/enforce
-
# start camera server as daemon
service qcamerasvr /vendor/bin/mm-qcamera-daemon
class main
@@ -722,6 +718,9 @@ on property:sys.boot_completed=1
chown media audio /sys/kernel/wcd_cpe0/fw_name
+ # Selinux status in settings
+ chmod 0644 /sys/fs/selinux/enforce
+
on property:persist.radio.atfwd.start=false
stop atfwd