Skip to content

Commit

Permalink
Fix cpufreq check in isolate-check-environment
Browse files Browse the repository at this point in the history
  • Loading branch information
bblackham committed Aug 3, 2017
1 parent c516839 commit 3e71980
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions isolate-check-environment
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,11 @@ swap_check
# Check that CPU frequency scaling is disabled.
cpufreq_check() {
print_start_check "CPU frequency scaling"
local any policy
local anycpus policy
anycpus=
# Ensure cpufreq governor is set to performance on all CPUs
find /sys/devices/system/cpu/cpufreq/ -name scaling_governor |
while read cpufreq_file ; do
policy=$(cat $i)
for cpufreq_file in $(find /sys/devices/system/cpu/cpufreq/ -name scaling_governor) ; do
policy=$(cat $cpufreq_file)
if [ "$policy" != "performance" ] ; then
print_fail
action \
Expand Down

0 comments on commit 3e71980

Please sign in to comment.