rickysarraf/laptop-mode-tools

cputotplug must be completed before cpufreq

Bogdan107 opened this issue · 0 comments

Describe the bug
I use cpufreq and cpuhotplug modules at the same time.

cpuhotplug module change the list of active CPU's.
cpufreq module change the CPU freq only for active CPU's.

I have:

DISABLE_AVAILABLE_CPU="half"
BATT_CPU_HOTPLUG=1
LM_AC_CPU_HOTPLUG=0
NOLM_AC_CPU_HOTPLUG=0

BATT_CPU_GOVERNOR=powersave
LM_AC_CPU_GOVERNOR=performance
NOLM_AC_CPU_GOVERNOR=schedutil

If I switch from AC to BAT, then I have a half of CPU's with powersave governor.
Then I switch from BAT to AC and have a half of CPU's with performance governor and a half of CPU's with powersave governor.

I want to apply governor from cpufreq module to all of active CPU's, not for half.

Expected behavior
When the power source is changed, the cpuhotplug module must be completed before starting the cpufreq module.

Important Information:

  • Distribution: Gentoo
  • Linux Kernel: 5.15.13
  • Laptop Mode Tools version: 1.74