]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq/amd-pstate: Only update the cached value in msr_set_epp() on success
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 9 Dec 2024 18:52:40 +0000 (12:52 -0600)
committerMario Limonciello <mario.limonciello@amd.com>
Wed, 11 Dec 2024 16:44:53 +0000 (10:44 -0600)
commit474e7218e81e7932ed18f91969b72169005ff038
tree8eaebd1b8667b5621afa8045d62d5860a8a6f7c5
parent88a95ba066a962d4d39c6a36b18bf665f51d3767
cpufreq/amd-pstate: Only update the cached value in msr_set_epp() on success

If writing the MSR MSR_AMD_CPPC_REQ fails then the cached value in the
amd_cpudata structure should not be updated.

Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Link: https://lore.kernel.org/r/20241209185248.16301-8-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate.c