sdm660-common: init: Adjust charger state CPUs
Bug: 74771887 Change-Id: Ifd5d2ac499866ce897cfa99a655da592248e7bbd Signed-off-by: Thierry Strudel <tstrudel@google.com> Signed-off-by: Zainudin Shamilov <renascape@beatwo.men>
This commit is contained in:
parent
bb85a5d86c
commit
e713c18a84
1 changed files with 2 additions and 8 deletions
|
@ -778,7 +778,7 @@ service vendor.ril-daemon3 /vendor/bin/hw/rild -c 3
|
|||
group radio cache inet misc audio sdcard_r sdcard_rw diag oem_2901 log
|
||||
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW
|
||||
|
||||
service charger /system/bin/charger
|
||||
service vendor.charger /system/bin/charger
|
||||
class charger
|
||||
user system
|
||||
group system graphics input
|
||||
|
@ -804,20 +804,14 @@ service vendor.msm_irqbal_lb /vendor/bin/msm_irqbalance -f /system/vendor/etc/ms
|
|||
group root
|
||||
disabled
|
||||
|
||||
on charger
|
||||
on property:init.svc.vendor.charger=running
|
||||
setprop persist.sys.usb.config mass_storage
|
||||
load_system_props
|
||||
start qcom-post-boot
|
||||
|
||||
# Lock to lowest frequency on charger mode
|
||||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave
|
||||
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor powersave
|
||||
|
||||
# Offline all cores except 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
|
||||
|
|
Loading…
Reference in a new issue