mirror of
https://github.com/followmsi/android_device_asus_deb.git
synced 2024-11-06 22:06:28 +00:00
deb: Use sys.io.scheduler for 12
Take logic from lineage-iosched.rc
As "prebuilt/common/etc/init/lineage-iosched.rc" has been removed
be135083d6
This commit is contained in:
parent
caa894cd9a
commit
b0d199d672
1 changed files with 16 additions and 0 deletions
|
@ -138,6 +138,22 @@ on boot
|
||||||
|
|
||||||
chown wifi wifi /sys/module/wlan/parameters/fwpath
|
chown wifi wifi /sys/module/wlan/parameters/fwpath
|
||||||
|
|
||||||
|
restorecon --recursive /sys/block/mmcblk0/queue
|
||||||
|
chown system system /sys/block/mmcblk0/queue/scheduler
|
||||||
|
chmod 0664 /sys/block/mmcblk0/queue/scheduler
|
||||||
|
|
||||||
|
# Configure IO scheduler
|
||||||
|
on property:sys.io.scheduler=*
|
||||||
|
write /sys/block/mmcblk0/queue/scheduler ${sys.io.scheduler}
|
||||||
|
|
||||||
|
on property:persist.sys.io.scheduler=*
|
||||||
|
setprop sys.io.scheduler ${persist.sys.io.scheduler}
|
||||||
|
|
||||||
|
# Set slice_idle to 0 for CFQ
|
||||||
|
on property:sys.io.scheduler=cfq
|
||||||
|
restorecon --recursive /sys/block/mmcblk0/queue
|
||||||
|
write /sys/block/mmcblk0/queue/iosched/slice_idle 0
|
||||||
|
|
||||||
on property:sys.boot_completed=1
|
on property:sys.boot_completed=1
|
||||||
setprop sys.io.scheduler cfq
|
setprop sys.io.scheduler cfq
|
||||||
write /sys/block/mmcblk0/bdi/read_ahead_kb 256
|
write /sys/block/mmcblk0/bdi/read_ahead_kb 256
|
||||||
|
|
Loading…
Reference in a new issue