]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu/userq: Fix the code alignment for readability
authorSunil Khatri <sunil.khatri@amd.com>
Thu, 26 Mar 2026 08:09:05 +0000 (13:39 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 30 Mar 2026 18:38:04 +0000 (14:38 -0400)
Fix the code alignment for if condition and also provide
a line space between multiline if condition and next
statement.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c

index 2a463f5644ac653d4bac11d91df4b322f7d4d47b..366728ed03e3e5d9bf115be8771a686b3e0bb958 100644 (file)
@@ -1461,17 +1461,19 @@ int amdgpu_userq_start_sched_for_enforce_isolation(struct amdgpu_device *adev,
 
        if (!adev->userq_halt_for_enforce_isolation)
                dev_warn(adev->dev, "userq scheduling already started!\n");
+
        adev->userq_halt_for_enforce_isolation = false;
+
        xa_for_each(&adev->userq_doorbell_xa, queue_id, queue) {
                uqm = queue->userq_mgr;
                mutex_lock(&uqm->userq_mutex);
-                       if (((queue->queue_type == AMDGPU_HW_IP_GFX) ||
-                            (queue->queue_type == AMDGPU_HW_IP_COMPUTE)) &&
-                           (queue->xcp_id == idx)) {
+               if (((queue->queue_type == AMDGPU_HW_IP_GFX) ||
+                    (queue->queue_type == AMDGPU_HW_IP_COMPUTE)) &&
+                   (queue->xcp_id == idx)) {
                        r = amdgpu_userq_restore_helper(queue);
                        if (r)
                                ret = r;
-                       }
+               }
                mutex_unlock(&uqm->userq_mutex);
        }