drm/amdgpu: reposition the gpu reset checking for reuse
authorTim Huang <tim.huang@amd.com>
Wed, 15 Mar 2023 07:52:09 +0000 (15:52 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Mar 2023 13:29:32 +0000 (09:29 -0400)
commitaaee0ce460b954e08b6e630d7e54b2abb672feb8
treee3c76e84cdfb0d723c789e018788eed90d6c3b67
parente8d018dd0257f744ca50a729e3d042cf2ec9da65
drm/amdgpu: reposition the gpu reset checking for reuse

Move the amdgpu_acpi_should_gpu_reset out of
CONFIG_SUSPEND to share it with hibernate case.

Signed-off-by: Tim Huang <tim.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.1.x
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c