Commits

Anonymous committed 65837dc

mako: reduce the power consumption in off-mode charging

In off-mode charging, we don't need to turn on CPU1 to CPU3.
So we turn off CPU1 to CPU3 in off-mode charging. By doing this
we can save 60mA.

Bug: 7429504

Change-Id: Ie5d58b6258b7b2d084674fa670f3cc41639a6fd2
Signed-off-by: Iliyan Malchev <malchev@google.com>

  • Participants
  • Parent commits 1ef9227

Comments (0)

Files changed (1)

File init.mako.rc

     write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 384000
     write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 384000
     write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 384000
+    write /sys/devices/system/cpu/cpu1/online 0
+    write /sys/devices/system/cpu/cpu2/online 0
+    write /sys/devices/system/cpu/cpu3/online 0
 
 on property:init.svc.wpa_supplicant=stopped
     stop dhcpcd