drm/amdgpu: define ras_reset_error_count function
authorTao Zhou <tao.zhou1@amd.com>
Wed, 11 Oct 2023 10:36:15 +0000 (18:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 20 Oct 2023 19:11:26 +0000 (15:11 -0400)
commit472c5fb29798695b589fb844f84c6bf4ff07c592
treeb747aedc9e2319c2156c1bea11bc944f64296178
parentf9caf6cdd5cc1f4006fd7b6b113658c0b0159f23
drm/amdgpu: define ras_reset_error_count function

Make the code architecture more simple.

v2: reuse ras_reset_error_count in ras_reset_error_status.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h