Merge "init.qcom.post_boot.sh: Enable all the LPMs by default"
This commit is contained in:
commit
423040c7e9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue