aboutsummaryrefslogtreecommitdiff
path: root/cpufreq/cpufreq_07.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cpufreq/cpufreq_07.sh')
-rwxr-xr-xcpufreq/cpufreq_07.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpufreq/cpufreq_07.sh b/cpufreq/cpufreq_07.sh
index 1505cb3..539e2d1 100755
--- a/cpufreq/cpufreq_07.sh
+++ b/cpufreq/cpufreq_07.sh
@@ -82,6 +82,12 @@ if [ $(id -u) != 0 ]; then
exit 0
fi
+supported=$(cat $CPU_PATH/cpu0/cpufreq/scaling_available_governors | grep "ondemand")
+if [ -z $supported ]; then
+ log_skip "ondemand not supported"
+ exit 0
+fi
+
save_governors
trap "restore_governors; sigtrap" SIGHUP SIGINT SIGTERM