blob: 13fb58743ef31248cb6742891fb8de29b7588ec9 [file] [log] [blame]
Leo Yana063cbd2017-05-23 13:03:05 +08001on post-fs
2 #
3 # EAS feature enabling
4 #
5 write /sys/kernel/debug/sched_features "ENERGY_AWARE"
6 write /proc/sys/kernel/sched_is_big_little 1
7 write /proc/sys/kernel/sched_cstate_aware 1
8 write /proc/sys/kernel/sched_sync_hint_enable 0
9 write /proc/sys/kernel/sched_initial_task_util 0
10
11 #
12 # EAS stune boosting interfaces
13 #
14 chown system system /dev/stune/top-app/schedtune.boost
15 chown system system /dev/stune/top-app/schedtune.prefer_idle
16 chown system system /dev/stune/foreground/schedtune.boost
17 chown system system /dev/stune/foreground/schedtune.prefer_idle
18 chown system system /dev/stune/schedtune.boost
19
20 write /dev/stune/top-app/schedtune.boost 50
21 write /dev/stune/top-app/schedtune.prefer_idle 1
22 write /dev/stune/foreground/schedtune.boost 50
23 write /dev/stune/foreground/schedtune.prefer_idle 1
24 write /dev/stune/schedtune.boost 0
25
26 setprop ro.config.schetune.touchboost.value 100
27 setprop ro.config.schetune.touchboost.time_ns 1000000000
28
29 setprop ro.config.cpufreq.max_freq.cluster0 "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
30 setprop ro.config.cpufreq.low_power_max.cluster0 "999000"
31 setprop ro.config.cpufreq.max_freq.cluster1 "/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq"
32 setprop ro.config.cpufreq.low_power_max.cluster1 "903000"