drm/amdgpu: simplify hw status clear/set logic
authorJiawei <Jiawei.Gu@amd.com>
Thu, 27 Aug 2020 02:07:52 +0000 (10:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Aug 2020 14:09:07 +0000 (10:09 -0400)
commit4cd2a96d3a0ac6b07c443e904f5b8a52f2471571
tree94fc182ac02765110d6a88afa0c5916ab5810b1f
parent6c4d1f43ed0edeee7f38069619cc8c43459a6171
drm/amdgpu: simplify hw status clear/set logic

Optimize code to iterate less loops in
amdgpu_device_ip_reinit_early_sriov()

Signed-off-by: Jiawei <Jiawei.Gu@amd.com>
Reviewed-by: Emily.Deng <Emily.Deng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c