]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpufreq/amd-pstate: Add POWER_SUPPLY select for dynamic EPP
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 7 Apr 2026 19:49:49 +0000 (14:49 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 7 Apr 2026 19:57:04 +0000 (21:57 +0200)
commit679343977588781bd3effba79e9644aee4ee046c
treee7966c2b6e20c8711a96e4c0dc71e7dca50232bd
parentd7d36c3a0977400b3a727741bb0468403f5a0cbe
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: e30ca6dd5345 ("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>
drivers/cpufreq/Kconfig.x86