3 # source application-specific settings
4 [ -f /etc
/conf.d
/cpufreq
] && .
/etc
/conf.d
/cpufreq
7 if [ -n "$governor" ]; then
8 mod
="cpufreq_$governor"
10 grep -qw "$governor" /sys
/devices
/system
/cpu
/cpu
*/cpufreq
/scaling_available_governors || modprobe
-q $mod
12 if [ "$min_freq" != "" ]; then
13 params
="$params -d $min_freq"
15 if [ "$max_freq" != "" ]; then
16 params
="$params -u $max_freq"
19 # Cannot load governor module
24 if [ "$params" != "" ]; then
25 CPUS
=$
(sed -ne 's/^processor.* \([0-9]\+\)$/\1/p' /proc
/cpuinfo
)
27 cpufreq-set
-c $cpu $params
28 if [ "$freq" != "" ]; then
29 cpufreq-set
-c $cpu -f $freq
33 # Invalid configuration in /etc/conf.d/cpufreq