]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
drm/amd/display: Rename atomic_commit parameter.
authorAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Tue, 24 Jan 2017 22:28:50 +0000 (17:28 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:12:30 +0000 (17:12 -0400)
This parameter name is misleading. It's previous
meaning confuses with ASYNC (immidiate flip)
which is totatlly different thing then nonblocking
commit.

Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c

index ad08d6f7f0943aa342d47c662ce67a96edcd3e4e..ad60a28975ca5dc7c514fbea34c95efb1f1cf164 100644 (file)
@@ -2253,7 +2253,7 @@ static void remove_stream(struct amdgpu_device *adev, struct amdgpu_crtc *acrtc)
 int amdgpu_dm_atomic_commit(
        struct drm_device *dev,
        struct drm_atomic_state *state,
-       bool async)
+       bool nonblock)
 {
        struct amdgpu_device *adev = dev->dev_private;
        struct amdgpu_display_manager *dm = &adev->dm;
@@ -2282,7 +2282,7 @@ int amdgpu_dm_atomic_commit(
         * we should not pin/unpin the fb here, it should be done in
         * amdgpu_crtc_flip and from the vblank irq handler.
         */
-       if (!async) {
+       if (!nonblock) {
                ret = drm_atomic_helper_prepare_planes(dev, state);
                if (ret)
                        return ret;
@@ -2620,7 +2620,7 @@ int amdgpu_dm_atomic_commit(
        /* In this state all old framebuffers would be unpinned */
 
        /* TODO: Revisit when we support true asynchronous commit.*/
-       if (!async)
+       if (!nonblock)
                drm_atomic_helper_cleanup_planes(dev, state);
 
        drm_atomic_state_put(state);