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 <file:Documentation/cpu-freq>. 
                                            
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

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容