]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpufreq/amd-pstate: Allow writes to dynamic_epp when state isn't modified
authorK Prateek Nayak <kprateek.nayak@amd.com>
Fri, 8 May 2026 05:17:45 +0000 (05:17 +0000)
committerMario Limonciello (AMD) <superm1@kernel.org>
Fri, 8 May 2026 05:30:50 +0000 (00:30 -0500)
commitc5eed6ddc757e477f52b3d99bfde9e59975c72ca
treeed42a9cc395e4ed86bce6a41fa4627d70b2fe26e
parent87d2a8dec0f02b200eb3527da0ab11ba4d4e7deb
cpufreq/amd-pstate: Allow writes to dynamic_epp when state isn't modified

Writing the current "dynamic_epp" state to sysfs fails with -EINVAL even
though the desired result was achieved. Allow writes to "dynamic_epp"
that does not modify the state.

Fixes: e30ca6dd5345 ("cpufreq/amd-pstate: Add dynamic energy performance preference")
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com>
Link: https://lore.kernel.org/r/20260508051748.10484-4-kprateek.nayak@amd.com
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
drivers/cpufreq/amd-pstate.c