]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Sep 2026 11:36:16 +0000 (13:36 +0200)
commit3b4b39f8bfb9bfb13fc86b083e1f53d65d108374
treeb679b0e750b95919f047157c5aa723dd7a68227e
parentc6584e98b60ee64bc3e8b2739b2ef101ea5f4bc1
cpufreq/amd-pstate: Add POWER_SUPPLY select for dynamic EPP

[ Upstream commit 679343977588781bd3effba79e9644aee4ee046c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/cpufreq/Kconfig.x86