summaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drm_stub.c
diff options
context:
space:
mode:
author=?utf-8?q?Michel_D=C3=A4nzer?= <michel@tungstengraphics.com>2006-10-24 23:30:01 +1000
committerairlied <airlied@linux.ie>2006-12-07 15:53:29 +1100
commit8163e418f71e46a28bac6625b4c633c13bd53c8d (patch)
tree57f15bc4ed9b8a12f50a4e993b3be9cd7363f739 /drivers/char/drm/drm_stub.c
parent507c0185a72e89002757a58f6c64de3df84da0de (diff)
downloadop-kernel-dev-8163e418f71e46a28bac6625b4c633c13bd53c8d.zip
op-kernel-dev-8163e418f71e46a28bac6625b4c633c13bd53c8d.tar.gz
drm: Make locked tasklet handling more robust.
Initialize the spinlock unconditionally when struct drm_device is filled in, and return early in drm_locked_tasklet() if the driver doesn't support IRQs. Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_stub.c')
-rw-r--r--drivers/char/drm/drm_stub.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/drm/drm_stub.c b/drivers/char/drm/drm_stub.c
index 6f748e1..5fd6dc0 100644
--- a/drivers/char/drm/drm_stub.c
+++ b/drivers/char/drm/drm_stub.c
@@ -61,6 +61,7 @@ static int drm_fill_in_dev(drm_device_t * dev, struct pci_dev *pdev,
spin_lock_init(&dev->count_lock);
spin_lock_init(&dev->drw_lock);
+ spin_lock_init(&dev->tasklet_lock);
init_timer(&dev->timer);
mutex_init(&dev->struct_mutex);
mutex_init(&dev->ctxlist_mutex);
OpenPOWER on IntegriCloud