高通平台ondemand调频
关于调频策略更多文章里有一篇关于三星的调频修改方式。
while true; do cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq; cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq; cat /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq; cat /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_cur_freq; cat /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_cur_freq; cat /sys/class/thermal/thermal_zone5/temp;cat /sys/class/thermal/thermal_zone6/temp; cat /sys/class/thermal/thermal_zone7/temp;cat /sys/class/thermal/thermal_zone8/temp; echo '\n'; sleep 1;done
当前系统可以支持的调频策略如下:
将高通平台的调频策略如何修改成ondemand
修改文件:
/device/qcom/common/rootdir/etc/init.qcom.post_boot.sh
这里面已经有了相关的策略设置:
# for devfreq_gov in /sys/class/devfreq/qcom,cpubw*/governor# do# echo "cpubw_hwmon" > $devfreq_gov# done# echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor# echo "interactive" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor# echo "interactive" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor# echo "interactive" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor# echo "20000 1400000:40000 1700000:20000" > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay# echo 90 > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load# echo 1190400 > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq# echo 1 > /sys/devices/system/cpu/cpufreq/interactive/io_is_busy# echo "85 1500000:90 1800000:70" > /sys/devices/system/cpu/cpufreq/interactive/target_loads# echo 40000 > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time# echo 20 > /sys/module/cpu_boost/parameters/boost_ms# echo 1728000 > /sys/module/cpu_boost/parameters/sync_threshold# echo 100000 > /sys/devices/system/cpu/cpufreq/interactive/sampling_down_factor# echo 1497600 > /sys/module/cpu_boost/parameters/input_boost_freq# echo 40 > /sys/module/cpu_boost/parameters/input_boost_ms# setprop ro.qualcomm.perf.cores_online 2# ;;# *)echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governorecho "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governorecho "ondemand" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governorecho "ondemand" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governorecho 50000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rateecho 90 > /sys/devices/system/cpu/cpufreq/ondemand/up_thresholdecho 1 > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busyecho 2 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factorecho 10 > /sys/devices/system/cpu/cpufreq/ondemand/down_differentialecho 70 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_coreecho 3 > /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_coreecho 960000 > /sys/devices/system/cpu/cpufreq/ondemand/optimal_freqecho 960000 > /sys/devices/system/cpu/cpufreq/ondemand/sync_freqecho 1190400 > /sys/devices/system/cpu/cpufreq/ondemand/input_boostecho 80 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!