diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2010-01-07 18:22:47 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-02-08 18:32:33 -0500 |
commit | 73a6d3fc104827db574e4bd206a025299fef0bb1 (patch) | |
tree | c5f3b9f63bf1bf10b307dcedaa77024237a267b0 /drivers/gpu/drm/radeon/radeon.h | |
parent | 20d6c346f69ec68f3f4956c726d830c978f911a8 (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/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index da1177375976..3f353131bb38 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h | |||
@@ -351,6 +351,7 @@ struct radeon_irq { | |||
351 | bool sw_int; | 351 | bool sw_int; |
352 | /* FIXME: use a define max crtc rather than hardcode it */ | 352 | /* FIXME: use a define max crtc rather than hardcode it */ |
353 | bool crtc_vblank_int[2]; | 353 | bool crtc_vblank_int[2]; |
354 | wait_queue_head_t vblank_queue; | ||
354 | /* FIXME: use defines for max hpd/dacs */ | 355 | /* FIXME: use defines for max hpd/dacs */ |
355 | bool hpd[6]; | 356 | bool hpd[6]; |
356 | spinlock_t sw_lock; | 357 | spinlock_t sw_lock; |
@@ -657,13 +658,11 @@ struct radeon_power_state { | |||
657 | 658 | ||
658 | struct radeon_pm { | 659 | struct radeon_pm { |
659 | struct mutex mutex; | 660 | struct mutex mutex; |
660 | struct work_struct reclock_work; | ||
661 | struct delayed_work idle_work; | 661 | struct delayed_work idle_work; |
662 | enum radeon_pm_state state; | 662 | enum radeon_pm_state state; |
663 | enum radeon_pm_action planned_action; | 663 | enum radeon_pm_action planned_action; |
664 | unsigned long action_timeout; | 664 | unsigned long action_timeout; |
665 | bool downclocked; | 665 | bool downclocked; |
666 | bool vblank_callback; | ||
667 | int active_crtcs; | 666 | int active_crtcs; |
668 | int req_vblank; | 667 | int req_vblank; |
669 | fixed20_12 max_bandwidth; | 668 | fixed20_12 max_bandwidth; |