Skip to content

Commit 5608ddf

Browse files
committed
drm/amdgpu/mes: optimize compute loop handling
Break when we get to the end of the supported pipes rather than continuing the loop. Reviewed-by: Shaoyun.liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 3bae791 commit 5608ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ int amdgpu_mes_init(struct amdgpu_device *adev)
147147
for (i = 0; i < AMDGPU_MES_MAX_COMPUTE_PIPES; i++) {
148148
/* use only 1st MEC pipes */
149149
if (i >= adev->gfx.mec.num_pipe_per_mec)
150-
continue;
150+
break;
151151
adev->mes.compute_hqd_mask[i] = 0xc;
152152
}
153153

0 commit comments

Comments
 (0)