]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq/amd-pstate: Cache CPPC request in shared mem case too
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 9 Dec 2024 17:54:32 +0000 (11:54 -0600)
committerMario Limonciello <mario.limonciello@amd.com>
Thu, 6 Mar 2025 19:01:25 +0000 (13:01 -0600)
commit9f5daa2f2f6dddd2a847d077bfddc7dc0d9dab10
tree70091e6571f713f353f9aa08326c74f6f9e3d4f4
parentb4cc466b973590114b4bf49025d362ad9618a23e
cpufreq/amd-pstate: Cache CPPC request in shared mem case too

In order to prevent a potential write for shmem_update_perf()
cache the request into the cppc_req_cached variable normally only
used for the MSR case.

This adds symmetry into the code and potentially avoids extra writes.

Reviewed-by: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate.c