Re: [PATCH] cpufreq/amd-pstate: Add POWER_SUPPLY dependency for dynamic EPP
From: Mario Limonciello
Date: Tue Apr 07 2026 - 13:10:14 EST
On 4/7/26 12:08, K Prateek Nayak wrote:
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?
Oh that's a really good point, thanks. I'll send another patch as a follow up.