From e713c18a84048503e3dbaf8b401c18d6a04af391 Mon Sep 17 00:00:00 2001 From: Thierry Strudel Date: Thu, 31 May 2018 18:22:50 +0000 Subject: [PATCH] sdm660-common: init: Adjust charger state CPUs Bug: 74771887 Change-Id: Ifd5d2ac499866ce897cfa99a655da592248e7bbd Signed-off-by: Thierry Strudel Signed-off-by: Zainudin Shamilov --- rootdir/etc/init.qcom.rc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 8bbcd8ab..be759cfa 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -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