From 8851feaa81cab000c0f9b5f28639439dd2469d67 Mon Sep 17 00:00:00 2001 From: Junjie Wu Date: Tue, 28 Jul 2015 18:14:11 -0700 Subject: [PATCH] init.qcom.post_boot: Configure new bus bw_hwmon parameters for MSM8996 Configure parameters of new bus bw_hwmon for MSM8996. Change-Id: Id233e11ca67827c47983bc89999789e2d1fbf9fd --- rootdir/etc/init.qcom.post_boot.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh index d722c9a1..f0859427 100644 --- a/rootdir/etc/init.qcom.post_boot.sh +++ b/rootdir/etc/init.qcom.post_boot.sh @@ -1000,9 +1000,21 @@ case "$target" in echo 400000 > /proc/sys/kernel/sched_freq_dec_notify echo 3 > /proc/sys/kernel/sched_spill_nr_run # Enable bus-dcvs - for devfreq_gov in /sys/class/devfreq/*qcom,cpubw*/governor + for cpubw in /sys/class/devfreq/*qcom,cpubw* do - echo "bw_hwmon" > $devfreq_gov + echo "bw_hwmon" > $cpubw/governor + echo 50 > $cpubw/polling_interval + echo 1525 > $cpubw/min_freq + echo "1525 5195 11863 13763" > $cpubw/bw_hwmon/mbps_zones + echo 2 > $cpubw/bw_hwmon/sample_ms + echo 34 > $cpubw/bw_hwmon/io_percent + echo 20 > $cpubw/bw_hwmon/hist_memory + echo 10 > $cpubw/bw_hwmon/hyst_length + echo 0 > $cpubw/bw_hwmon/low_power_ceil_mbps + echo 34 > $cpubw/bw_hwmon/low_power_io_percent + echo 20 > $cpubw/bw_hwmon/low_power_delay + echo 0 > $cpubw/bw_hwmon/guard_band_mbps + echo 250 > $cpubw/bw_hwmon/up_scale done for devfreq_gov in /sys/class/devfreq/*qcom,mincpubw*/governor