laptop-mode-tools icon indicating copy to clipboard operation
laptop-mode-tools copied to clipboard

configure CPU IDLE governor in cpufreq module

Open Bogdan107 opened this issue 3 years ago • 0 comments

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:

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

Bogdan107 avatar Jan 08 '22 11:01 Bogdan107