Re: [PATCH] cpufreq/amd-pstate: Add POWER_SUPPLY dependency for dynamic EPP
From: K Prateek Nayak
Date: Tue Apr 07 2026 - 13:10:41 EST
Hello Mario,
On 4/7/2026 8:24 PM, Mario Limonciello wrote:
> config X86_AMD_PSTATE_DYNAMIC_EPP
> bool "AMD Processor P-State dynamic EPP support"
> - depends on X86_AMD_PSTATE
> + depends on X86_AMD_PSTATE && POWER_SUPPLY
This config only controls the default selection right? The offending
power_supply_{reg,unreg}_notifier() isn't guarded behind
#ifdef CONFIG_X86_AMD_PSTATE_DYNAMIC_EPP so we'll still run into this.
I thing X86_AMD_PSTATE doing a "select POWER_SUPPLY" should cure this.
Thoughts?
> default n
> help
> Allow the kernel to dynamically change the energy performance
--
Thanks and Regards,
Prateek