Merge "init.recovery.device.rc: limit discard size to 128MB" into qt-qpr1-dev

This commit is contained in:
Randall Huang
2020-01-08 09:55:08 +00:00
committed by Android (Google) Code Review

View File

@@ -8,3 +8,7 @@ on init
write /sys/module/msm_poweroff/parameters/warm_reset 1
# Enable thermal mitigation
write /sys/devices/virtual/thermal/tz-by-name/backup-charge/mode enabled
# Block layer tuning: discard chunk size up to 128MB
# Otherwise, contiguous discards can be merged
write /sys/block/sda/queue/discard_max_bytes 134217728