2023-12-05 18:29:48 -08:00
|
|
|
on early-init
|
|
|
|
# boot perf. tune
|
|
|
|
write /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq 2000000
|
|
|
|
write /sys/devices/system/cpu/cpufreq/policy6/scaling_min_freq 2200000
|
|
|
|
write /sys/class/devfreq/mtk-dvfsrc-devfreq/userspace/set_freq 5500000000
|
|
|
|
|
2023-08-29 04:44:58 -07:00
|
|
|
on property:init.svc.vendor.charger=running
|
2023-12-05 18:29:48 -08:00
|
|
|
write /sys/devices/system/cpu/cpufreq/policy0/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
|
2023-08-29 04:41:08 -07:00
|
|
|
|
2023-08-29 04:44:58 -07:00
|
|
|
# Keep one LITTLE and one big
|
2023-08-29 04:41:08 -07:00
|
|
|
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/cpu7/online 0
|
2023-12-05 18:29:48 -08:00
|
|
|
|
|
|
|
on post-fs-data
|
|
|
|
write /sys/devices/system/cpu/cpufreq/policy0/scaling_governor sugov_ext
|
|
|
|
write /sys/devices/system/cpu/cpufreq/policy6/scaling_governor sugov_ext
|
2023-08-29 04:49:11 -07:00
|
|
|
|
|
|
|
on init
|
|
|
|
write /sys/devices/platform/soc/11270000.ufshci/clkgate_enable 0
|
2023-12-05 18:29:48 -08:00
|
|
|
write /proc/sys/kernel/sched_util_clamp_min_rt_default 0
|
|
|
|
|
|
|
|
# boot perf. tune
|
|
|
|
write /dev/cpuctl/system/cpu.uclamp.min 100
|
|
|
|
write /dev/cpuctl/system/cpu.uclamp.latency_sensitive 1
|
|
|
|
write /dev/cpuctl/system-background/cpu.uclamp.min 100
|
|
|
|
write /dev/cpuctl/system-background/cpu.uclamp.latency_sensitive 1
|
|
|
|
write /dev/cpuctl/foreground/cpu.uclamp.min 100
|
|
|
|
write /dev/cpuctl/foreground/cpu.uclamp.latency_sensitive 1
|
|
|
|
write /dev/cpuctl/top-app/cpu.uclamp.min 100
|
|
|
|
write /dev/cpuctl/top-app/cpu.uclamp.latency_sensitive 1
|
|
|
|
write /dev/cpuctl/background/cpu.uclamp.min 100
|
|
|
|
write /dev/cpuctl/background/cpu.uclamp.latency_sensitive 1
|
|
|
|
|
|
|
|
on property:sys.boot_completed=1
|
2023-08-29 04:49:11 -07:00
|
|
|
write /sys/devices/platform/soc/11270000.ufshci/clkgate_enable 1
|
2023-12-05 18:29:48 -08:00
|
|
|
write /proc/sys/kernel/sched_migration_cost_ns 200000
|
|
|
|
|
|
|
|
# restore boot perf. tune
|
|
|
|
write /sys/devices/system/cpu/cpufreq/policy0/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 /dev/cpuctl/system/cpu.uclamp.min 0
|
|
|
|
write /dev/cpuctl/system/cpu.uclamp.latency_sensitive 0
|
|
|
|
write /dev/cpuctl/system-background/cpu.uclamp.min 0
|
|
|
|
write /dev/cpuctl/system-background/cpu.uclamp.latency_sensitive 0
|
|
|
|
write /dev/cpuctl/foreground/cpu.uclamp.min 0
|
|
|
|
write /dev/cpuctl/foreground/cpu.uclamp.latency_sensitive 0
|
|
|
|
write /dev/cpuctl/top-app/cpu.uclamp.min 0
|
|
|
|
write /dev/cpuctl/top-app/cpu.uclamp.latency_sensitive 0
|
|
|
|
write /dev/cpuctl/background/cpu.uclamp.min 0
|
|
|
|
write /dev/cpuctl/background/cpu.uclamp.latency_sensitive 0
|