From 5536ae7136ee29c5b0879663a94033c972ee5ea9 Mon Sep 17 00:00:00 2001 From: Junjie Wu Date: Tue, 16 Dec 2014 17:34:10 -0800 Subject: [PATCH] init.qcom.post_boot: Enable LPM after all cores are onlined Only enable LPM after all cores are onlined. This avoids potential race between code boot sequence and low power modes on A57 cluster. Change-Id: I95202f4ffe62dd8889efcc42085c8792b9ec04ba --- rootdir/etc/init.qcom.post_boot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh index d9f6805b..58c415ad 100755 --- a/rootdir/etc/init.qcom.post_boot.sh +++ b/rootdir/etc/init.qcom.post_boot.sh @@ -758,7 +758,6 @@ case "$target" in bcl_hotplug_mask=`cat /sys/devices/soc.*/qcom,bcl.*/hotplug_mask` echo 0 > /sys/devices/soc.*/qcom,bcl.*/hotplug_mask echo -n enable > /sys/devices/soc.*/qcom,bcl.*/mode - echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled # configure governor settings for little cluster echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_sched_load @@ -800,6 +799,7 @@ case "$target" in echo 1 > /sys/devices/system/cpu/cpu5/online echo 1 > /sys/devices/system/cpu/cpu6/online echo 1 > /sys/devices/system/cpu/cpu7/online + echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled # Restore CPU 4 max freq from msm_performance echo "4:4294967295 5:4294967295 6:4294967295 7:4294967295" > /sys/module/msm_performance/parameters/cpu_max_freq # input boost configuration