mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-22 21:56:26 -08:00
47 lines
2.2 KiB
Plaintext
47 lines
2.2 KiB
Plaintext
|
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
|
||
|
|
||
|
on charger
|
||
|
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
|
||
|
|
||
|
|
||
|
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
|
||
|
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
|
||
|
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
|