From 5626ca5359278b198ecb2b80cdac3f0c4245a669 Mon Sep 17 00:00:00 2001 From: Raghavendra Kakarla Date: Wed, 4 Dec 2019 21:53:12 +0530 Subject: [PATCH] sdm660: init.qcom.post_boot: enable LPMs for bengal Enable low power modes and core_ctl for the bengal. Change-Id: Ie6784fdacec66020c19fa67d1c3a095af9745f21 --- rootdir/bin/init.qcom.post_boot.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rootdir/bin/init.qcom.post_boot.sh b/rootdir/bin/init.qcom.post_boot.sh index 4ccd6e3a..769e339c 100755 --- a/rootdir/bin/init.qcom.post_boot.sh +++ b/rootdir/bin/init.qcom.post_boot.sh @@ -3720,7 +3720,7 @@ case "$target" in # Core control is temporarily disabled till bring up echo 0 > /sys/devices/system/cpu/cpu0/core_ctl/enable - echo 4 > /sys/devices/system/cpu/cpu4/core_ctl/min_cpus + echo 2 > /sys/devices/system/cpu/cpu4/core_ctl/min_cpus # Core control parameters on big echo 40 > /sys/devices/system/cpu/cpu4/core_ctl/busy_down_thres echo 60 > /sys/devices/system/cpu/cpu4/core_ctl/busy_up_thres @@ -3826,9 +3826,8 @@ case "$target" in # Turn off scheduler boost at the end echo 0 > /proc/sys/kernel/sched_boost - # Turn off sleep modes till bring up - # sleep modes to be enabled after bring up - echo 1 > /sys/module/lpm_levels/parameters/sleep_disabled + # Turn on sleep modes + echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled ;; esac