mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-01-29 02:44:24 +00:00
Also cleanup some non applicable HMP procfs nodes Test: /sys/module/lpm_levels/parameters/sleep_disabled is N Change-Id: I3429eb4b78f154f1cd2757d5bfde94b256fba2cf Signed-off-by: Thierry Strudel <tstrudel@google.com>
53 lines
1.5 KiB
Bash
53 lines
1.5 KiB
Bash
#!/system/bin/sh
|
|
|
|
################################################################################
|
|
# helper functions to allow Android init like script
|
|
|
|
function write() {
|
|
echo -n $2 > $1
|
|
}
|
|
|
|
function copy() {
|
|
cat $1 > $2
|
|
}
|
|
|
|
################################################################################
|
|
|
|
# disable thermal hotplug to switch governor
|
|
write /sys/module/msm_thermal/core_control/enabled 0
|
|
|
|
# bring back main cores CPU 0,4
|
|
write /sys/devices/system/cpu/cpu0/online 1
|
|
write /sys/devices/system/cpu/cpu4/online 1
|
|
|
|
# configure governor settings for little cluster
|
|
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "sched"
|
|
|
|
# configure governor settings for big cluster
|
|
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor "sched"
|
|
|
|
# re-enable thermal hotplug
|
|
write /sys/module/msm_thermal/core_control/enabled 1
|
|
|
|
# Enable bus-dcvs
|
|
for cpubw in /sys/class/devfreq/*qcom,cpubw*
|
|
do
|
|
write $cpubw/governor "bw_hwmon"
|
|
write $cpubw/polling_interval 50
|
|
write $cpubw/min_freq 1525
|
|
write $cpubw/bw_hwmon/mbps_zones "3143 5859 11863 13763"
|
|
write $cpubw/bw_hwmon/sample_ms 4
|
|
write $cpubw/bw_hwmon/io_percent 34
|
|
write $cpubw/bw_hwmon/hist_memory 20
|
|
write $cpubw/bw_hwmon/hyst_length 10
|
|
write $cpubw/bw_hwmon/low_power_ceil_mbps 0
|
|
write $cpubw/bw_hwmon/low_power_io_percent 34
|
|
write $cpubw/bw_hwmon/low_power_delay 20
|
|
write $cpubw/bw_hwmon/guard_band_mbps 0
|
|
write $cpubw/bw_hwmon/up_scale 250
|
|
write $cpubw/bw_hwmon/idle_mbps 1600
|
|
done
|
|
|
|
write /sys/class/devfreq/soc:qcom,mincpubw/governor "cpufreq"
|
|
|