drm/amdgpu: Use rpm_mode flag instead of checking it again for rpm
authorMa Jun <Jun.Ma2@amd.com>
Wed, 28 Feb 2024 06:14:22 +0000 (14:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Mar 2024 20:59:08 +0000 (15:59 -0500)
commit86e14a7386a14fa54f11456ec0bd1ada28c0fd5a
treeb952e6a47d20dc498ccea5a1a033bb357fce6a0e
parentf317c5e583516fcf8ad93e2bab2d0a4ed4efe60b
drm/amdgpu: Use rpm_mode flag instead of checking it again for rpm

Because the rpm_mode flag is already set when the driver
is initialized, we use it directly for runtime suspend/resume
instead of checking it again

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c