File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,24 @@ for cpu in $(ls -1d /sys/devices/system/cpu/cpu* | sort --version-sort) ; do
1414 if [ -f $cpu /cpufreq/scaling_governor ]; then
1515 chmod u+w $cpu /cpufreq/scaling_governor
1616 fi
17+ for boundary in min max; do
18+ if [ -f $cpu /cpufreq/scaling_${boundary} _freq ]; then
19+ chmod u+w $cpu /cpufreq/scaling_${boundary} _freq
20+ fi
21+ done
1722
1823 # Set governor to performance and do not allow changes later on.
1924 if [ -f $cpu /cpufreq/scaling_governor ]; then
2025 echo performance > $cpu /cpufreq/scaling_governor
2126 chmod a-w $cpu /cpufreq/scaling_governor
2227 fi
2328
29+ # Hardware maximum performance.
30+ if [ -f $cpu /cpufreq/scaling_min_freq ] && [ -f $cpu /cpufreq/scaling_max_freq ]; then
31+ cp $cpu /cpufreq/scaling_{max,min}_freq
32+ chmod a-w $cpu /cpufreq/scaling_{max,min}_freq
33+ fi
34+
2435 # Disable all but one thread on each core. Both core_id and physical_package_id are
2536 # numbers it must be ensured that for the following examples are seen as distinct:
2637 # - core_id=1, physical_package=11
You can’t perform that action at this time.
0 commit comments