diff options
author | Christian König <christian.koenig@amd.com> | 2016-02-11 11:31:37 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-02-16 17:25:38 -0500 |
commit | 87d58c11ec17234c4636a588466260a95fec59cb (patch) | |
tree | 8b965b90dd6135aca7dd3558e21fcdbbe73cae25 /drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | |
parent | c3874b758ad52708ffdbab3e7c58e70167ce5024 (diff) |
drm/amdgpu: remove page flip work queue v3
Just use the system queue now that we don't block any more.
v2: handle DAL as well.
v3: agd: split DAL changes out
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Mykola Lysenko <mykola.lysenko@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com> (v1)
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_display.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c index edf91593ac87..2cb53c24dec0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | |||
@@ -39,11 +39,9 @@ static void amdgpu_flip_callback(struct fence *f, struct fence_cb *cb) | |||
39 | { | 39 | { |
40 | struct amdgpu_flip_work *work = | 40 | struct amdgpu_flip_work *work = |
41 | container_of(cb, struct amdgpu_flip_work, cb); | 41 | container_of(cb, struct amdgpu_flip_work, cb); |
42 | struct amdgpu_device *adev = work->adev; | ||
43 | struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[work->crtc_id]; | ||
44 | 42 | ||
45 | fence_put(f); | 43 | fence_put(f); |
46 | queue_work(amdgpu_crtc->pflip_queue, &work->flip_work); | 44 | schedule_work(&work->flip_work); |
47 | } | 45 | } |
48 | 46 | ||
49 | static bool amdgpu_flip_handle_fence(struct amdgpu_flip_work *work, | 47 | static bool amdgpu_flip_handle_fence(struct amdgpu_flip_work *work, |