From 364db164bf40d2b09c3a5f043800c88ba19617dc Mon Sep 17 00:00:00 2001 From: chungkai Date: Tue, 12 Jul 2022 10:00:34 +0000 Subject: [PATCH] Enable load kernel modules in parallel enable load kernel modules in parallel but load some specific modules in sequential Test: reboot more than 5000 times without failure and reduce 250ms(33%) Bug: 229794277 Signed-off-by: chungkai Change-Id: Ic4961389d58b5195d252dff15cbb92bb391caacc --- cheetah/BoardConfig.mk | 8 ++++++++ panther/BoardConfig.mk | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/cheetah/BoardConfig.mk b/cheetah/BoardConfig.mk index 59a7b9b..2b04c8d 100644 --- a/cheetah/BoardConfig.mk +++ b/cheetah/BoardConfig.mk @@ -13,6 +13,14 @@ # See the License for the specific language governing permissions and # limitations under the License. # + +# Enable load module in parallel +BOARD_BOOTCONFIG += androidboot.load_modules_parallel=true + +# The modules which need to be loaded in sequential +BOARD_KERNEL_CMDLINE += vh_sched.load_sequential=1 +BOARD_KERNEL_CMDLINE += exynos_drm.load_sequential=1 + TARGET_BOARD_INFO_FILE := device/google/pantah/board-info.txt TARGET_BOOTLOADER_BOARD_NAME := cheetah TARGET_SCREEN_DENSITY := 560 diff --git a/panther/BoardConfig.mk b/panther/BoardConfig.mk index 07afce2..acf3714 100644 --- a/panther/BoardConfig.mk +++ b/panther/BoardConfig.mk @@ -13,6 +13,14 @@ # See the License for the specific language governing permissions and # limitations under the License. # + +# Enable load module in parallel +BOARD_BOOTCONFIG += androidboot.load_modules_parallel=true + +# The modules which need to be loaded in sequential +BOARD_KERNEL_CMDLINE += vh_sched.load_sequential=1 +BOARD_KERNEL_CMDLINE += exynos_drm.load_sequential=1 + TARGET_BOARD_INFO_FILE := device/google/pantah/board-info.txt TARGET_BOOTLOADER_BOARD_NAME := panther TARGET_SCREEN_DENSITY := 420