Leo Yan | a063cbd | 2017-05-23 13:03:05 +0800 | [diff] [blame] | 1 | on 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 |
Leo Yan | f0e78bf | 2017-11-28 22:01:58 +0800 | [diff] [blame] | 19 | chown system system /sys/class/devfreq/ddr_devfreq/min_freq |
| 20 | chown system system /sys/class/devfreq/e82c0000.mali/min_freq |
Leo Yan | a063cbd | 2017-05-23 13:03:05 +0800 | [diff] [blame] | 21 | |
Leo Yan | 9c214db | 2017-11-28 22:20:51 +0800 | [diff] [blame] | 22 | write /dev/stune/top-app/schedtune.boost 20 |
Leo Yan | a063cbd | 2017-05-23 13:03:05 +0800 | [diff] [blame] | 23 | write /dev/stune/top-app/schedtune.prefer_idle 1 |
Leo Yan | 9c214db | 2017-11-28 22:20:51 +0800 | [diff] [blame] | 24 | write /dev/stune/foreground/schedtune.boost 20 |
Leo Yan | a063cbd | 2017-05-23 13:03:05 +0800 | [diff] [blame] | 25 | write /dev/stune/foreground/schedtune.prefer_idle 1 |
| 26 | write /dev/stune/schedtune.boost 0 |
| 27 | |
Leo Yan | 9c214db | 2017-11-28 22:20:51 +0800 | [diff] [blame] | 28 | setprop ro.config.schetune.touchboost.value 20 |
Leo Yan | a063cbd | 2017-05-23 13:03:05 +0800 | [diff] [blame] | 29 | setprop ro.config.schetune.touchboost.time_ns 1000000000 |
| 30 | |
| 31 | setprop ro.config.cpufreq.max_freq.cluster0 "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq" |
| 32 | setprop ro.config.cpufreq.low_power_max.cluster0 "999000" |
| 33 | setprop ro.config.cpufreq.max_freq.cluster1 "/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq" |
| 34 | setprop ro.config.cpufreq.low_power_max.cluster1 "903000" |
Leo Yan | f0e78bf | 2017-11-28 22:01:58 +0800 | [diff] [blame] | 35 | |
| 36 | setprop ro.config.devfreq.ddr.min_freq.path "/sys/class/devfreq/ddr_devfreq/min_freq" |
| 37 | setprop ro.config.devfreq.ddr.min_freq.boost "685000000" |
| 38 | |
| 39 | setprop ro.config.devfreq.gpu.min_freq.path "/sys/class/devfreq/e82c0000.mali/min_freq" |
| 40 | setprop ro.config.devfreq.gpu.min_freq.boost "960000000" |