Skip to content

Commit 6793439

Browse files
superm1rafaeljw
authored andcommitted
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 <kprateek.nayak@amd.com> Fixes: e30ca6d ("cpufreq/amd-pstate: Add dynamic energy performance preference") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202604040742.ySEdkuAa-lkp@intel.com/ Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Link: https://patch.msgid.link/20260407194949.310114-1-mario.limonciello@amd.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent d7d36c3 commit 6793439

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/cpufreq/Kconfig.x86

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ config X86_AMD_PSTATE
4141
select ACPI_CPPC_LIB if X86_64
4242
select CPU_FREQ_GOV_SCHEDUTIL if SMP
4343
select ACPI_PLATFORM_PROFILE
44+
select POWER_SUPPLY
4445
help
4546
This driver adds a CPUFreq driver which utilizes a fine grain
4647
processor performance frequency control range instead of legacy

0 commit comments

Comments
 (0)