1#Setup for newer devices
2
3if [[ "`id -u`" -ne "0" ]]; then
4  echo "WARNING: running as non-root, proceeding anyways..."
5fi
6
7stop thermal-engine
8stop perfd
9
10echo 0 > /sys/devices/system/cpu/cpu0/online
11echo 0 > /sys/devices/system/cpu/cpu1/online
12
13echo performance  > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
14echo 2150400 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
15
16echo 13763 > /sys/class/devfreq/soc:qcom,gpubw/max_freq
17echo performance > /sys/class/kgsl/kgsl-3d0/devfreq/governor
18echo -n 624000000 > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq
19