diff options
-rwxr-xr-x | benchmarks-script/common/common.sh | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/benchmarks-script/common/common.sh b/benchmarks-script/common/common.sh index 47fbe7c..8a0930a 100755 --- a/benchmarks-script/common/common.sh +++ b/benchmarks-script/common/common.sh @@ -8,28 +8,6 @@ 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}" @@ -64,7 +42,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 |