From 2bb61fabcbaed2125d34c30035ad8b704bd0a62f Mon Sep 17 00:00:00 2001 From: Sravan Kumar Ambapuram Date: Mon, 14 Apr 2014 16:12:11 +0530 Subject: [PATCH] init.qcom.post_boot: Setting minimum freq for 8x10/8x26 to 787200Hz Changing the min_freq to max nominal will make apps enter IPC more often and hence saving power for active use cases. Change-Id: I8eec5a67dcf5016b9053788281ed870db9beeb81 --- rootdir/etc/init.qcom.post_boot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh index 26a22821..5009c018 100755 --- a/rootdir/etc/init.qcom.post_boot.sh +++ b/rootdir/etc/init.qcom.post_boot.sh @@ -365,7 +365,7 @@ case "$target" in echo 787200 > /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq echo 300000 > /sys/devices/system/cpu/cpufreq/ondemand/sync_freq echo 80 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load - echo 300000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq + echo 787200 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq chown -h system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq chown -h system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq chown -h root.system /sys/devices/system/cpu/cpu1/online @@ -407,7 +407,7 @@ case "$target" in echo 787200 > /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq echo 300000 > /sys/devices/system/cpu/cpufreq/ondemand/sync_freq echo 80 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load - echo 300000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq + echo 787200 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq setprop ro.qualcomm.perf.min_freq 7 echo 1 > /sys/kernel/mm/ksm/deferred_timer chown -h system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq