Linux5.4.78内核配置,如何禁用CPU Frequency scaling?

默认情况下CPU Frequency scaling不可取消选择,因为被其它选项依赖了,在CPU Frequency scaling选项上按 shift+?,出现以下内容

 CONFIG_CPU_FREQ:           
                                                                                                                           
CPU Frequency scaling allows you to change the clock speed of                               
CPUs on the fly. This is a nice method to save power, because                                  
the lower the CPU clock speed, the less power the CPU consumes.
                
Note that this driver doesn't automatically change the CPU
clock speed, you need to either enable a dynamic cpufreq governor                                
(see below) after boot, or use a userspace tool. 
                      
For details, take a look at . 
                                            
If in doubt, say N. 
            
Symbol: CPU_FREQ [=n]                                  
  Type  : bool
  Prompt: CPU Frequency scaling
  Location:
      -> Power management and ACPI options
        -> CPU Frequency scaling
 Defined at drivers/cpufreq/Kconfig:4
 Selects: SRCU [=y]
 Selected by [n]:
 - SCHED_MC_PRIO [=n] && SCHED_MC [=y] && CPU_SUP_INTEL [=y]  

可以看到,select by 下面的那些配置,这个就是被依赖的配置项,将SCHED_MC_PRIO 禁用即可。

这个配置项在Processor type and features > CPU core priorities scheduler support

你可能感兴趣的:(Linux5.4.78内核配置,如何禁用CPU Frequency scaling?)