laptop-mode-tools
laptop-mode-tools copied to clipboard
configure CPU IDLE governor in cpufreq module
Describe the bug
CPU frequency governor configured per cpu in /sys/devices/system/cpu/cpu${i}/cpufreq/scaling_governor
file.
CPU IDLE governor configured per system in /sys/devices/system/cpu/cpuidle/current_governor
file.
More info:
- https://www.kernel.org/doc/html/latest/admin-guide/pm/cpuidle.html
- https://community.ibm.com/community/user/power/blogs/pratik-sampat1/2021/03/05/weighted-idle-governor
CPU scalling governor configured in cpufreq module in (BATT|LM_AC|NOLM)_CPU_GOVERNOR
variables.
I want to customize CPU IDLE governor too.
$ zgrep CONFIG_CPU_IDLE /proc/config.gz
CONFIG_CPU_IDLE=y
CONFIG_CPU_IDLE_GOV_LADDER=y
CONFIG_CPU_IDLE_GOV_MENU=y
CONFIG_CPU_IDLE_GOV_TEO=y
# CONFIG_CPU_IDLE_THERMAL is not set
$ cat /sys/devices/system/cpu/cpuidle/available_governors
ladder menu teo
$ cat /sys/devices/system/cpu/cpuidle/current_governor
ladder
Expected behavior
I want to customize CPU IDLE governor by (BATT|LM_AC|NOLM)_CPU_IDLE_GOVERNOR
variables in cpufreq module:
BATT_CPU_IDLE_GOVERNOR=teo
LM_AC_CPU_IDLE_GOVERNOR=ladder
NOLM_CPU_IDLE_GOVERNOR=menu