summaryrefslogtreecommitdiff
path: root/linux-core/drm_stub.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2006-10-02 11:04:42 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2006-10-02 11:04:42 +0200
commit3a16e615cabfed18b1891a732e7243ef41dc0ad0 (patch)
tree7e1ae6d6c458c37b308a24d492f428ba63d4951e /linux-core/drm_stub.c
parentd58389968124191a546a14b42ef84edc224be23d (diff)
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.
Diffstat (limited to 'linux-core/drm_stub.c')
-rw-r--r--linux-core/drm_stub.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-core/drm_stub.c b/linux-core/drm_stub.c
index ad78dcf7..839cf441 100644
--- a/linux-core/drm_stub.c
+++ b/linux-core/drm_stub.c
@@ -62,6 +62,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);