LG8n: Adjust charger state CPUs

Bug: 74771887
Change-Id: Ifd5d2ac499866ce897cfa99a655da592248e7bbd
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
Thierry Strudel 2023-08-29 12:44:58 +01:00 committed by Shirayuki39
parent 1ca23a7b10
commit 43de0bf1bb

View file

@ -4,22 +4,17 @@ on early-init
write /sys/devices/system/cpu/cpufreq/policy6/scaling_min_freq 2200000 write /sys/devices/system/cpu/cpufreq/policy6/scaling_min_freq 2200000
write /sys/class/devfreq/mtk-dvfsrc-devfreq/userspace/set_freq 5500000000 write /sys/class/devfreq/mtk-dvfsrc-devfreq/userspace/set_freq 5500000000
on charger on property:init.svc.vendor.charger=running
write /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq 0 write /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq 0
write /sys/devices/system/cpu/cpufreq/policy6/scaling_min_freq 0 write /sys/devices/system/cpu/cpufreq/policy6/scaling_min_freq 0
write /sys/class/devfreq/mtk-dvfsrc-devfreq/userspace/set_freq 0 write /sys/class/devfreq/mtk-dvfsrc-devfreq/userspace/set_freq 0
# Lock to lowest frequency on charger mode # Keep one LITTLE and one big
write /sys/devices/system/cpu/cpufreq/policy0/scaling_governor powersave
write /sys/devices/system/cpu/cpufreq/policy6/scaling_governor powersave
# Offline all cores except cpu0
write /sys/devices/system/cpu/cpu1/online 0 write /sys/devices/system/cpu/cpu1/online 0
write /sys/devices/system/cpu/cpu2/online 0 write /sys/devices/system/cpu/cpu2/online 0
write /sys/devices/system/cpu/cpu3/online 0 write /sys/devices/system/cpu/cpu3/online 0
write /sys/devices/system/cpu/cpu4/online 0 write /sys/devices/system/cpu/cpu4/online 0
write /sys/devices/system/cpu/cpu5/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/devices/system/cpu/cpu7/online 0
on post-fs-data on post-fs-data