File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 63
63
64
64
DIR_INTEL=/sys/devices/system/cpu/intel_pstate
65
65
DIR_AMD=/sys/devices/system/cpu/cpufreq
66
+ # Same for some ARM CPUs
67
+ FILE_AMD=$DIR_AMD /boost
66
68
if [ -d $DIR_INTEL ]; then
67
69
# now disable turbo boost
68
70
FILE=$DIR_INTEL /no_turbo
@@ -75,11 +77,10 @@ if [ -d $DIR_INTEL ]; then
75
77
# increase freq from powersaving to normal, but don't overclock
76
78
echo 100 > $DIR_INTEL /min_perf_pct
77
79
echo 100 > $DIR_INTEL /max_perf_pct
78
- elif [ -d $DIR_AMD ]; then
80
+ elif [ -f $FILE_AMD ]; then
79
81
# now disable boosting
80
- FILE=$DIR_AMD /boost
81
- echo -n 0 > $FILE || echo " Could not write to '$FILE ', ignoring for now..."
82
- if [ $( cat $FILE ) -ne 0 ]; then
82
+ echo -n 0 > $FILE_AMD || echo " Could not write to '$FILE_AMD ', ignoring for now..."
83
+ if [ $( cat $FILE_AMD ) -ne 0 ]; then
83
84
echo " Error: turboboost still enabled!"
84
85
exit 1
85
86
fi
You can’t perform that action at this time.
0 commit comments