From 0af407568771d26ddb9813807b3edb911cd909cb Mon Sep 17 00:00:00 2001 From: Arian Date: Tue, 30 Mar 2021 01:44:47 +0200 Subject: [PATCH] Revert "davinci: rootdir: Remove sleep_disabled switch during boot" This reverts commit 512997761231f1097305542c6f31efd5ff6accc5. Change-Id: Ib2c6b666191cec45992996465b2d355df5ba1c10 --- BoardConfigCommon.mk | 1 + rootdir/bin/init.qcom.post_boot.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 2193c92..ee03e48 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -103,6 +103,7 @@ BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0xa880 BOARD_KERNEL_CMDLINE += androidboot.hardware=qcom androidboot.console=ttyMSM0 BOARD_KERNEL_CMDLINE += androidboot.usbcontroller=a600000.dwc3 BOARD_KERNEL_CMDLINE += service_locator.enable=1 +BOARD_KERNEL_CMDLINE += lpm_levels.sleep_disabled=1 BOARD_KERNEL_CMDLINE += loop.max_part=7 BOARD_BOOTIMG_HEADER_VERSION := 1 diff --git a/rootdir/bin/init.qcom.post_boot.sh b/rootdir/bin/init.qcom.post_boot.sh index a0ee820..74e78ff 100644 --- a/rootdir/bin/init.qcom.post_boot.sh +++ b/rootdir/bin/init.qcom.post_boot.sh @@ -218,6 +218,9 @@ case "$target" in # Turn off scheduler boost at the end echo 0 > /proc/sys/kernel/sched_boost + + # Turn on sleep modes. + echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled ;; esac