diff options
author | Thierry Strudel <tstrudel@google.com> | 2015-07-08 09:23:09 -0700 |
---|---|---|
committer | Thierry Strudel <tstrudel@google.com> | 2015-07-13 21:35:51 -0700 |
commit | 6bbb5555b31e931c9b29f09ba5f7e3e7e91dff25 (patch) | |
tree | baa65a3887e5ed605e8583896c448b58d0f90cfe | |
parent | 4c802357b1dbd45e6441884fa21968938d66ba9d (diff) | |
download | bullhead-6bbb5555b31e931c9b29f09ba5f7e3e7e91dff25.tar.gz |
bullhead: enable low power mode only on boot complete
Bug: 22158118
Change-Id: Icf7dc8d8a55206717784788159ff297cc3667d58
Signed-off-by: Thierry Strudel <tstrudel@google.com>
-rwxr-xr-x | init.bullhead.power.sh | 1 | ||||
-rw-r--r-- | init.bullhead.rc | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/init.bullhead.power.sh b/init.bullhead.power.sh index 562424c..87e9ed0 100755 --- a/init.bullhead.power.sh +++ b/init.bullhead.power.sh @@ -85,7 +85,6 @@ copy /sys/devices/system/cpu/cpu4/cpufreq/cpuinfo_max_freq /sys/devices/system/c # plugin remaining A57s write /sys/devices/system/cpu/cpu5/online 1 -write /sys/module/lpm_levels/parameters/sleep_disabled 0 # Restore CPU 4 max freq from msm_performance write /sys/module/msm_performance/parameters/cpu_max_freq "4:4294967295 5:4294967295" diff --git a/init.bullhead.rc b/init.bullhead.rc index f1088ec..1670b9c 100644 --- a/init.bullhead.rc +++ b/init.bullhead.rc @@ -46,6 +46,10 @@ on charger # allow CPUs to go in deeper idle state than C0 write /sys/module/lpm_levels/parameters/sleep_disabled 0 +on property:sys.boot_completed=1 + # allow CPUs to go in deeper idle state than C0 + write /sys/module/lpm_levels/parameters/sleep_disabled 0 + on init # Load persistent dm-verity state verity_load_state |