aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/rs600.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2010-01-07 18:22:47 -0500
committerDave Airlie <airlied@redhat.com>2010-02-08 18:32:33 -0500
commit73a6d3fc104827db574e4bd206a025299fef0bb1 (patch)
treec5f3b9f63bf1bf10b307dcedaa77024237a267b0 /drivers/gpu/drm/radeon/rs600.c
parent20d6c346f69ec68f3f4956c726d830c978f911a8 (diff)
drm/radeon/kms: use wait queue (events) for VBLANK sync
This already simplifies code significally and makes it maintaible in case of adding memory reclocking plus voltage changing in future. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/rs600.c')
-rw-r--r--drivers/gpu/drm/radeon/rs600.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/rs600.c b/drivers/gpu/drm/radeon/rs600.c
index a581fdead4dd..979b00034de9 100644
--- a/drivers/gpu/drm/radeon/rs600.c
+++ b/drivers/gpu/drm/radeon/rs600.c
@@ -408,13 +408,11 @@ int rs600_irq_process(struct radeon_device *rdev)
408 /* Vertical blank interrupts */ 408 /* Vertical blank interrupts */
409 if (G_007EDC_LB_D1_VBLANK_INTERRUPT(r500_disp_int)) { 409 if (G_007EDC_LB_D1_VBLANK_INTERRUPT(r500_disp_int)) {
410 drm_handle_vblank(rdev->ddev, 0); 410 drm_handle_vblank(rdev->ddev, 0);
411 if (rdev->pm.vblank_callback) 411 wake_up(&rdev->irq.vblank_queue);
412 queue_work(rdev->wq, &rdev->pm.reclock_work);
413 } 412 }
414 if (G_007EDC_LB_D2_VBLANK_INTERRUPT(r500_disp_int)) { 413 if (G_007EDC_LB_D2_VBLANK_INTERRUPT(r500_disp_int)) {
415 drm_handle_vblank(rdev->ddev, 1); 414 drm_handle_vblank(rdev->ddev, 1);
416 if (rdev->pm.vblank_callback) 415 wake_up(&rdev->irq.vblank_queue);
417 queue_work(rdev->wq, &rdev->pm.reclock_work);
418 } 416 }
419 if (G_007EDC_DC_HOT_PLUG_DETECT1_INTERRUPT(r500_disp_int)) { 417 if (G_007EDC_DC_HOT_PLUG_DETECT1_INTERRUPT(r500_disp_int)) {
420 queue_hotplug = true; 418 queue_hotplug = true;