summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/cpufreq/governor.sh
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2017-01-13 09:36:48 +0300
committerShuah Khan <shuahkh@osg.samsung.com>2017-01-19 20:32:27 +0300
commit1e4c2830c36914feb7d03916e21f7c2e45dc2055 (patch)
treefc2ef4ea871c91162e5ed385ea076db5836c5134 /tools/testing/selftests/cpufreq/governor.sh
parent6751faf3d8338d525e8d9c35ae87cbfed48ce958 (diff)
downloadlinux-1e4c2830c36914feb7d03916e21f7c2e45dc2055.tar.xz
selftest: cpufreq: Add special tests
This patch adds support for special tests which were reported on the PM list over the years, which helped catching core bugs by several developers. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/cpufreq/governor.sh')
-rwxr-xr-xtools/testing/selftests/cpufreq/governor.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/testing/selftests/cpufreq/governor.sh b/tools/testing/selftests/cpufreq/governor.sh
index 2e42432892ab..def645103555 100755
--- a/tools/testing/selftests/cpufreq/governor.sh
+++ b/tools/testing/selftests/cpufreq/governor.sh
@@ -71,6 +71,13 @@ __switch_governor()
echo $2 > $CPUFREQROOT/$1/scaling_governor
}
+# param:
+# $1: cpu, $2: governor
+__switch_governor_for_cpu()
+{
+ echo $2 > $CPUROOT/$1/cpufreq/scaling_governor
+}
+
# SWITCH GOVERNORS
# $1: cpu, $2: governor