From fc2a3db56312143a3de0ad58dad501040fdb06f3 Mon Sep 17 00:00:00 2001 From: Murali Nalajala Date: Thu, 2 Jul 2015 13:30:41 -0700 Subject: [PATCH] init.qcom.post_boot.sh: Enable all the LPMs by default Enable all the LPMs by default except D3 state. Change-Id: I572f611ed47d019ebe9b22f5a0e300db06051269 --- rootdir/etc/init.qcom.post_boot.sh | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh index fee628ea..2b3abcfa 100644 --- a/rootdir/etc/init.qcom.post_boot.sh +++ b/rootdir/etc/init.qcom.post_boot.sh @@ -995,22 +995,10 @@ case "$target" in soc_revision=`cat /sys/devices/soc0/revision` if [ "$soc_revision" == "2.1" ]; then - # Disable C4, D3, D4 and M3 LPMs - echo 0 > /sys/module/lpm_levels/system/pwr/cpu0/fpc/idle_enabled - echo 0 > /sys/module/lpm_levels/system/pwr/cpu1/fpc/idle_enabled - echo 0 > /sys/module/lpm_levels/system/perf/cpu2/fpc/idle_enabled - echo 0 > /sys/module/lpm_levels/system/perf/cpu3/fpc/idle_enabled + # Enable C4.D4.E4.M3 LPM modes + # Disable D3 state echo 0 > /sys/module/lpm_levels/system/pwr/pwr-l2-gdhs/idle_enabled - echo 0 > /sys/module/lpm_levels/system/pwr/pwr-l2-fpc/idle_enabled echo 0 > /sys/module/lpm_levels/system/perf/perf-l2-gdhs/idle_enabled - echo 0 > /sys/module/lpm_levels/system/perf/perf-l2-fpc/idle_enabled - echo 0 > /sys/module/lpm_levels/system/system-fpc/idle_enabled - - # Enable C4 LPM mode - echo 1 > /sys/module/lpm_levels/system/pwr/cpu0/fpc/idle_enabled - echo 1 > /sys/module/lpm_levels/system/pwr/cpu1/fpc/idle_enabled - echo 1 > /sys/module/lpm_levels/system/perf/cpu2/fpc/idle_enabled - echo 1 > /sys/module/lpm_levels/system/perf/cpu3/fpc/idle_enabled echo N > /sys/module/lpm_levels/parameters/sleep_disabled else #Disable suspend for v1.0 and v2.0