land: Properly set up low power modes on charger
We don't need all of the other stuff. Just disable all cores and enable LPM. Change-Id: I4721f9a5aa57d0523f37f7352ade8b9a2919b0d9
This commit is contained in:
parent
f0906fbf4c
commit
ae19300740
1 changed files with 11 additions and 1 deletions
|
@ -135,7 +135,17 @@ on class_start:late_start
|
|||
trigger enable-low-power
|
||||
|
||||
on charger
|
||||
trigger enable-low-power
|
||||
# Offline all cores other than CPU0
|
||||
write /sys/devices/system/cpu/cpu1/online 0
|
||||
write /sys/devices/system/cpu/cpu2/online 0
|
||||
write /sys/devices/system/cpu/cpu3/online 0
|
||||
write /sys/devices/system/cpu/cpu4/online 0
|
||||
write /sys/devices/system/cpu/cpu5/online 0
|
||||
write /sys/devices/system/cpu/cpu6/online 0
|
||||
write /sys/devices/system/cpu/cpu7/online 0
|
||||
|
||||
write /sys/module/lpm_levels/parameters/sleep_disabled 0
|
||||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave
|
||||
|
||||
on property:init.svc.recovery=running
|
||||
trigger enable-low-power
|
||||
|
|
Loading…
Reference in a new issue