aboutsummaryrefslogtreecommitdiff
path: root/governor.sh
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-01-13 15:57:34 +0530
committerViresh Kumar <viresh.kumar@linaro.org>2015-01-13 15:57:34 +0530
commit13e176f3b5a8b25bbe05cc9f28c4e8336fcb2440 (patch)
tree94303bdcdf9caaa3c899b9966050a4aeeb5e8d6f /governor.sh
parenteb344cc3bfbe682a6499bc505dda1f841149de36 (diff)
some more updates
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'governor.sh')
-rwxr-xr-xgovernor.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/governor.sh b/governor.sh
index a82a6d5..2d03c80 100755
--- a/governor.sh
+++ b/governor.sh
@@ -20,6 +20,8 @@ find_gov_directory()
echo "$GLOBAL_CPUFREQ/$2"
elif [ -d $CPU_PATH/$1/cpufreq -a -d $CPU_PATH/$1/cpufreq/$2 ]; then
echo "$CPU_PATH/$1/cpufreq/$2"
+ else
+ echo "INVALID"
fi
}
@@ -57,7 +59,7 @@ switch_show_governor()
# show governor files
local govpath=$(find_gov_directory $1 $2)
- if [ ! -z $govpath ]; then
+ if [ $govpath != "INVALID" ]; then
__read_cpufreq_files $govpath
fi
}