summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD. Andrei Măceș <dmaces@nd.edu>2016-09-04 10:37:13 -0400
committerAndré Pinela <sheffzor@gmail.com>2017-01-31 20:28:30 +0000
commitec5c99c56030211b541682ab0a454b27753e5faf (patch)
treef5293560effb73b0c1ee00268c8bd14b465cd51a
parent684b4fbd95060f930b9c153adeff55fc8258c27a (diff)
init: Switch to BFQ on sys.boot_completed & other I/O tweaks
Change-Id: I455547d746b53683eac26241541b65d904404bad
-rw-r--r--rootdir/init.grouper.rc23
1 files changed, 13 insertions, 10 deletions
diff --git a/rootdir/init.grouper.rc b/rootdir/init.grouper.rc
index 32a5ed0..7d2a956 100644
--- a/rootdir/init.grouper.rc
+++ b/rootdir/init.grouper.rc
@@ -5,6 +5,9 @@ import init.grouper.usb.rc
on early-init
mount debugfs debugfs /sys/kernel/debug
+ write /sys/block/mmcblk0/bdi/read_ahead_kb 512
+ write /sys/block/mmcblk0/queue/scheduler noop
+
on init
symlink /sdcard /storage/sdcard0
@@ -57,16 +60,6 @@ on boot
chown system system /sys/class/graphics/fb0/device/smartdimmer/enable
chown system system /sys/class/graphics/fb0/device/smartdimmer/aggressiveness
- # Default mmc queue settings
- # Set read ahead
- write /sys/block/mmcblk0/queue/read_ahead_kb 256
- # Set IO scheduler
- write /sys/block/mmcblk0/queue/scheduler cfq
- # Forces the completion to run on the requesting cpu
- write /sys/block/mmcblk0/queue/rq_affinity 2
- # Disable entropy
- write /sys/block/mmcblk0/queue/add_random 0
-
# GPS
mkdir /data/gps 1770 gps system
write /sys/class/gpio/export 162
@@ -77,6 +70,16 @@ on boot
chown gps system /dev/ttyHS1
chmod 0660 /dev/ttyHS1
+on property:sys.boot_completed=1
+ # IO - default mmc queue settings
+ write /sys/block/mmcblk0/queue/scheduler bfq
+ write /sys/block/mmcblk0/bdi/read_ahead_kb 256
+ write /sys/block/mmcblk0/queue/iosched/slice_idle 0
+ # Forces the completion to run on the requesting cpu
+ write /sys/block/mmcblk0/queue/rq_affinity 2
+ # Disable entropy
+ write /sys/block/mmcblk0/queue/add_random 0
+
service wpa_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-I/system/etc/wifi/wpa_supplicant_overlay.conf \