aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2013-01-30 15:12:21 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2013-01-30 15:12:21 +0530
commit16a63ba41f7bcadb2ccfeb568f0e872b8c2f48a5 (patch)
treebdcc09a8eb5859b4c89ffc1f7f972be7173e1e17
parentb2bf2599f96dba1e144fab1f99e3cdf4cdf36126 (diff)
switch to A15 mode
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rwxr-xr-xbenchmarks-script/common/common.sh24
1 files changed, 23 insertions, 1 deletions
diff --git a/benchmarks-script/common/common.sh b/benchmarks-script/common/common.sh
index 78bc3fa..f91093e 100755
--- a/benchmarks-script/common/common.sh
+++ b/benchmarks-script/common/common.sh
@@ -8,6 +8,28 @@ pre_uninstall=""
do_streamline=false
+function switch_to_A15(){
+ adb shell echo 0 > /sys/devices/system/cpu/cpu0/cpuidle/state1/disable
+ adb shell echo 0 > /sys/kernel/debug/idle_debug/enable_idle
+ adb shell echo 1 > /sys/kernel/debug/idle_debug/enable_idle
+ adb shell echo 0 > /sys/kernel/bL_switcher/active
+
+ # wait 10 seconds here
+ adb shell echo 1 > /sys/devices/system/cpu/cpu0/online
+ adb shell echo 1 > /sys/devices/system/cpu/cpu1/online
+ adb shell echo 0 > /sys/devices/system/cpu/cpu2/online
+ adb shell echo 0 > /sys/devices/system/cpu/cpu3/online
+ adb shell echo 0 > /sys/devices/system/cpu/cpu4/online
+ adb shell echo interactive > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+ adb shell echo interactive > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
+ adb shell echo 90 > /sys/devices/system/cpu/cpufreq/interactive/target_load
+ adb shell echo 80000 > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
+ adb shell echo 1000000 > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
+ adb shell echo 20000 > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
+ adb shell echo 80000 > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
+ adb shell echo 85 > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
+}
+
function install_linaro_android_jar(){
jar_name="linaro.android.jar"
tgt_path="/data/local/tmp/${jar_name}"
@@ -42,7 +64,7 @@ function pull_png_files_from_device(){
function init(){
install_linaro_android_jar
-
+ switch_to_A15
#uninstall the apk application
adb uninstall "${apk_package}"
#clear the logcat information