TIVI-248 & TIVI-267: remove -sharevts option from startx.
[profile/ivi/xorg-x11-server-misc.git] / arm-common / scripts / setcpu
1 #!/bin/sh
2
3 if [ "$1" = "" ]; then
4         echo "Usage> /usr/bin/setcpu <performance | ondemand>"
5         exit 1
6 fi
7
8 if [ "$1" = "perf" ]; then
9         echo "Setting CPU @ Performance Mode"
10         echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
11 else
12         if [ "$1" = "performance" ]; then
13                 echo "Setting CPU @ Performance Mode"
14                 echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
15         else
16                 if [ "$1" = "ondemand" ]; then
17                         echo "Setting CPU @ Ondemand Mode"
18                         echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
19                 else
20                         echo "Usage> /usr/bin/setcpu <performance | ondemand>"
21                         exit 1
22                 fi
23         fi
24 fi