From 92400286d45382b9e25b771170f1476656761cbf Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Mon, 11 Mar 2019 23:18:27 +0000 Subject: [PATCH 1/2] Revert "Boottime: remove all block-related tunes including readahead size" This reverts commit 08e352d88b0ad3f6e3e085ccdd25314b0287b16f. Reason for revert: boottime regression found by b/126431810 Change-Id: Ie9b9f05bfff86518fe59fdd06d1a33f423567184 --- init-common.rc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/init-common.rc b/init-common.rc index f0434e7..0dcc3f0 100644 --- a/init-common.rc +++ b/init-common.rc @@ -1,3 +1,21 @@ +on late-fs + # boot time fs tune + write /sys/block/sda/queue/iostats 0 + write /sys/block/sda/queue/scheduler cfq + write /sys/block/sda/queue/iosched/slice_idle 0 + write /sys/block/sda/queue/read_ahead_kb 2048 + write /sys/block/sda/queue/nr_requests 256 + write /sys/block/dm-0/queue/read_ahead_kb 2048 + write /sys/block/dm-1/queue/read_ahead_kb 2048 + +on property:sys.boot_completed=1 + # end boot time fs tune + write /sys/block/sda/queue/read_ahead_kb 128 + write /sys/block/sda/queue/nr_requests 128 + write /sys/block/sda/queue/iostats 1 + write /sys/block/dm-0/queue/read_ahead_kb 128 + write /sys/block/dm-1/queue/read_ahead_kb 128 + on property:sys.boot_completed=1 && property:ro.build.type=user write /proc/sys/kernel/modules_disabled 1 From 1afc16e62adaa3f0a7825b88867d85b45fdb714a Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Tue, 4 Dec 2018 10:12:00 +0800 Subject: [PATCH 2/2] Enable prebuilt ELF file checks This commits sets PRODUCT_CHECK_ELF_FILES to true so that all prebuilts are checked while building muskie products. Bug: 119086738 Test: make check-elf-files Change-Id: Idd69e6959f7cbf7e84178300cc64d89b4118806f --- device-common.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/device-common.mk b/device-common.mk index 41f1b82..f848de1 100644 --- a/device-common.mk +++ b/device-common.mk @@ -146,3 +146,5 @@ PRODUCT_PROPERTY_OVERRIDES += \ # NFC/camera interaction workaround - DO NOT COPY TO NEW DEVICES PRODUCT_PROPERTY_OVERRIDES += \ ro.camera.notify_nfc=1 + +PRODUCT_CHECK_ELF_FILES := true