diff options
Diffstat (limited to 'prepare-board.sh')
-rwxr-xr-x | prepare-board.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/prepare-board.sh b/prepare-board.sh index b1952f3..23c25a4 100755 --- a/prepare-board.sh +++ b/prepare-board.sh @@ -273,6 +273,8 @@ configure_perf_hack() fi if [ "$op" = "start_docker" ]; then + # We do want word splitting here as the conf contains cmd line options for perf + # shellcheck disable=SC2046 taskset -c 0 $LINUX_TOOLS/perf record -q -N $(cat $conf_file) -o /dev/null -- sleep 2000d 1>&- 2>&- & pid=$! disown $pid @@ -337,7 +339,7 @@ do_cpufreq_start() # By default use ondemand governor with HW min and max frequencies. # This avoid inconsistent state when we try to set $minfreq below # current maximum frequency. - $LINUX_TOOLS/cpupower -c $cpu frequency-set --governor ondemand --min $(calc_freq "$cpufreq_path" min) --max $(calc_freq "$cpufreq_path" max) + $LINUX_TOOLS/cpupower -c $cpu frequency-set --governor ondemand --min "$(calc_freq "$cpufreq_path" min)" --max "$(calc_freq "$cpufreq_path" max)" set_var "$restore_file" "$cpufreq_path/scaling_governor" "$gov" set_var "$restore_file" "$cpufreq_path/scaling_min_freq" "$minfreq" |