drm/amdgpu: skip imu related function if dpm=0
authorLikun Gao <Likun.Gao@amd.com>
Fri, 30 Jun 2023 09:02:43 +0000 (17:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 May 2024 20:18:11 +0000 (16:18 -0400)
commit29d36a9cfdb648fb15017e6f104fd1b4a1296b90
tree88f2d3fbc64894b9df92c56678f61831e7b20615
parent32d1637689893971b65658a359d03ef4fa30e049
drm/amdgpu: skip imu related function if dpm=0

Only execute IMU related functions if dpm>0.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c