aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Escande <thierry.escande@linaro.org>2018-05-16 15:28:38 +0200
committerLisa Nguyen <lisa.nguyen@linaro.org>2018-05-17 10:59:25 -0700
commit3877a39e72773d5104095c3caf96f4c6b9be102b (patch)
tree9bcba0afab6fbe4e0e92c64441335d3bcfe19e02
parenta2731a26f8bbe45cdc9af1da72b525865d7caf5b (diff)
functions: switch to userspace governor in restore_frequencies()
The governor needs to be set to 'userspace' before setting the original frequency back. This fixes cpufreq_06.sh that otherwise logs 'sh: echo: I/O error' messages in its log file. Signed-off-by: Thierry Escande <thierry.escande@linaro.org>
-rw-r--r--include/functions.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/functions.sh b/include/functions.sh
index e9f66d1..c3adfd8 100644
--- a/include/functions.sh
+++ b/include/functions.sh
@@ -412,6 +412,7 @@ restore_frequencies() {
index=0
for cpu in $cpus; do
+ set_governor $cpu userspace
oldfreq=$(eval echo \$$freq_array$index)
echo $oldfreq > $CPU_PATH/$cpu/cpufreq/scaling_setspeed
index=$((index + 1))