1if [[ "`id -u`" -ne "0" ]]; then
2  echo "WARNING: running as non-root, proceeding anyways..."
3fi
4
5stop thermal-engine
6stop perfd
7
8echo -n 0 > /sys/devices/system/cpu/cpu0/online
9echo -n 0 > /sys/devices/system/cpu/cpu1/online
10echo -n 0 > /sys/devices/system/cpu/cpu2/online
11echo -n 0 > /sys/devices/system/cpu/cpu3/online
12
13echo -n 1 > /sys/devices/system/cpu/cpu4/online
14echo -n performance > /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor
15
16echo -n 1 > /sys/devices/system/cpu/cpu5/online
17echo -n performance > /sys/devices/system/cpu/cpu5/cpufreq/scaling_governor
18
19echo -n 0 > /sys/devices/system/cpu/cpu6/online
20echo -n 0 > /sys/devices/system/cpu/cpu7/online
21
22echo performance > /sys/class/kgsl/kgsl-3d0/devfreq/governor
23
24echo 0 > /sys/class/kgsl/kgsl-3d0/bus_split
25echo 1 > /sys/class/kgsl/kgsl-3d0/force_clk_on
26
27echo 10000 > /sys/class/kgsl/kgsl-3d0/idle_timer
28
29