Skip to content

Commit

Permalink
drm/radeon/kms: Initialize pageflip spinlocks.
Browse files Browse the repository at this point in the history
I'm amazed but not really surprised this worked on x86...

Signed-off-by: Michel Dänzer <daenzer@vmware.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
  • Loading branch information
Michel Dänzer authored and Dave Airlie committed Jan 24, 2011
1 parent 1bae4ce commit 29d9ebc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/radeon/radeon_irq_kms.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,14 @@ void radeon_driver_irq_uninstall_kms(struct drm_device *dev)

int radeon_irq_kms_init(struct radeon_device *rdev)
{
int i;
int r = 0;

INIT_WORK(&rdev->hotplug_work, radeon_hotplug_work_func);

spin_lock_init(&rdev->irq.sw_lock);
for (i = 0; i < rdev->num_crtc; i++)
spin_lock_init(&rdev->irq.pflip_lock[i]);
r = drm_vblank_init(rdev->ddev, rdev->num_crtc);
if (r) {
return r;
Expand Down

0 comments on commit 29d9ebc

Please sign in to comment.