diff options
author | Hawking Zhang <Hawking.Zhang@amd.com> | 2017-06-09 11:39:31 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-06-15 11:50:23 -0400 |
commit | 2bbec882c22ef8598c6daf0d52feae9da6f13a04 (patch) | |
tree | 1f828a8f955f471f196d81e5f12db5f4cd7d30f5 /drivers/gpu/drm/amd | |
parent | 51fd0370677733785b1f5f31057a12738386ee25 (diff) |
drm/amdgpu: avoid to reset wave_front_size to 0
No need to clear it. The values are set explicitly.
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index e9dd2c183a58..c1e9756dd975 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | |||
@@ -4452,8 +4452,6 @@ static int gfx_v9_0_get_cu_info(struct amdgpu_device *adev, | |||
4452 | if (!adev || !cu_info) | 4452 | if (!adev || !cu_info) |
4453 | return -EINVAL; | 4453 | return -EINVAL; |
4454 | 4454 | ||
4455 | memset(cu_info, 0, sizeof(*cu_info)); | ||
4456 | |||
4457 | mutex_lock(&adev->grbm_idx_mutex); | 4455 | mutex_lock(&adev->grbm_idx_mutex); |
4458 | for (i = 0; i < adev->gfx.config.max_shader_engines; i++) { | 4456 | for (i = 0; i < adev->gfx.config.max_shader_engines; i++) { |
4459 | for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { | 4457 | for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { |