Merge "init.qcom.post_boot.sh: Enable all the LPMs by default"

This commit is contained in:
Linux Build Service Account 2015-07-27 14:51:17 -07:00 committed by Gerrit - the friendly Code Review server
commit 423040c7e9
1 changed files with 2 additions and 14 deletions

View File

@ -1014,22 +1014,10 @@ case "$target" in
soc_revision=`cat /sys/devices/soc0/revision` soc_revision=`cat /sys/devices/soc0/revision`
if [ "$soc_revision" == "2.1" ]; then if [ "$soc_revision" == "2.1" ]; then
# Disable C4, D3, D4 and M3 LPMs # Enable C4.D4.E4.M3 LPM modes
echo 0 > /sys/module/lpm_levels/system/pwr/cpu0/fpc/idle_enabled # Disable D3 state
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
echo 0 > /sys/module/lpm_levels/system/pwr/pwr-l2-gdhs/idle_enabled 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-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 echo N > /sys/module/lpm_levels/parameters/sleep_disabled
else else
#Disable suspend for v1.0 and v2.0 #Disable suspend for v1.0 and v2.0