From 65d876ee94d2e8e637aae3646fb4145020adc2a0 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Fri, 13 Oct 2017 17:28:54 -0400 Subject: Support machines without controllable cpu speed --- etc/governor.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'etc/governor.sh') diff --git a/etc/governor.sh b/etc/governor.sh index 4e11cf2fd..3b059fd70 100755 --- a/etc/governor.sh +++ b/etc/governor.sh @@ -13,6 +13,9 @@ for cpu in "/sys/devices/system/cpu/cpu"[0-9]* ; do if grep -vq '^1$' "$cpu/online" 2>/dev/null; then continue fi + if [ ! -e "$cpu/cpufreq/scaling_available_governors" ]; then + continue + fi generators="$(cat "$cpu/cpufreq/scaling_available_governors")" if [ "$#" -eq 0 ] || [ -z "$1" ]; then usage "$generators" -- cgit v1.2.3