From: Mario Limonciello Date: Tue, 7 Apr 2026 19:49:49 +0000 (-0500) Subject: cpufreq/amd-pstate: Add POWER_SUPPLY select for dynamic EPP X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=679343977588781bd3effba79e9644aee4ee046c;p=thirdparty%2Fkernel%2Flinux.git cpufreq/amd-pstate: Add POWER_SUPPLY select for dynamic EPP The dynamic EPP feature uses power_supply_reg_notifier() and power_supply_unreg_notifier() but doesn't declare a dependency on POWER_SUPPLY, causing linker errors when POWER_SUPPLY is not enabled. Add POWER_SUPPLY to the selects. Suggested-by: K Prateek Nayak Fixes: e30ca6dd5345 ("cpufreq/amd-pstate: Add dynamic energy performance preference") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202604040742.ySEdkuAa-lkp@intel.com/ Signed-off-by: Mario Limonciello Link: https://patch.msgid.link/20260407194949.310114-1-mario.limonciello@amd.com Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/Kconfig.x86 b/drivers/cpufreq/Kconfig.x86 index a0dbb9808ae99..027e6ea2e0384 100644 --- a/drivers/cpufreq/Kconfig.x86 +++ b/drivers/cpufreq/Kconfig.x86 @@ -41,6 +41,7 @@ config X86_AMD_PSTATE select ACPI_CPPC_LIB if X86_64 select CPU_FREQ_GOV_SCHEDUTIL if SMP select ACPI_PLATFORM_PROFILE + select POWER_SUPPLY help This driver adds a CPUFreq driver which utilizes a fine grain processor performance frequency control range instead of legacy