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>
Wed, 22 Mar 2023 04:47:58 +0000 (00:47 -0400)
commitd24eae4dd7ffb3e6de6080fad1297db8ab4b0260
tree262242b5332156c74ca29200aaaf48ca87de5f66
parentaef98f2e1bc411a27f25db81574309b7415602ca
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>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c