upload android base code part6
This commit is contained in:
parent
421e214c7d
commit
4e516ec6ed
35396 changed files with 9188716 additions and 0 deletions
22
android/platform_testing/scripts/perf-setup/dragon-setup.sh
Executable file
22
android/platform_testing/scripts/perf-setup/dragon-setup.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
# performance testing setup script for dragon device
|
||||
|
||||
if [[ "`id -u`" -ne "0" ]]; then
|
||||
echo "WARNING: running as non-root, proceeding anyways..."
|
||||
fi
|
||||
|
||||
# locking CPU frequency
|
||||
|
||||
# note: locking cpu0 is sufficent to cover other cores as well
|
||||
echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
||||
echo 1530000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
||||
echo 1530000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
|
||||
echo 1530000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
|
||||
|
||||
# locking GPU frequency
|
||||
|
||||
# note: frequency choices can be found in:
|
||||
# cat /sys/class/drm/card0/device/pstate
|
||||
|
||||
# select 768 MHz
|
||||
# 0a: core 768 MHz emc 1600 MHz
|
||||
echo 0a > /sys/class/drm/card0/device/pstate
|
Loading…
Add table
Add a link
Reference in a new issue