drm/amd/pm: Add missing mutex for pp_get_power_profile_mode
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 1 Nov 2021 21:15:33 +0000 (16:15 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Nov 2021 16:22:07 +0000 (12:22 -0400)
commit067558177be63c38935f2668cb270e42d37e6372
tree7e1ffa7f019ffeb824421a58eac75591f3ddab5d
parent9a40d0448f0381dcff2c8f9e63d27ce79aebbdfb
drm/amd/pm: Add missing mutex for pp_get_power_profile_mode

Prevent possible issues from set and get being called simultaneously.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c