summaryrefslogtreecommitdiff
path: root/bsd-core/drmP.h
diff options
context:
space:
mode:
authorOwain Gordon Ainsworth <oga@openbsd.org>2008-07-07 17:23:48 +0100
committerRobert Noland <rnoland@2hip.net>2008-07-16 21:37:39 -0400
commit74cf1f91be7f4139601624af0343e3d411190dec (patch)
tree05b856fe8ee275c8c153f89c5a85ef56d7ea580e /bsd-core/drmP.h
parent96580f660e5509dcf6c34de5630e3d36b156bcd5 (diff)
BSD: change drm_locked_task*() to use the same scheme as linux.
The current code can sleep in an interrupt handler, that is bad. So instead if we can't grab the lock, flag it and run the tasklet on unlock. Signed-off-by: Robert Noland <rnoland@2hip.net>
Diffstat (limited to 'bsd-core/drmP.h')
-rw-r--r--bsd-core/drmP.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bsd-core/drmP.h b/bsd-core/drmP.h
index 88ea4e69..65d7fae4 100644
--- a/bsd-core/drmP.h
+++ b/bsd-core/drmP.h
@@ -739,6 +739,7 @@ struct drm_device {
struct mtx dev_lock; /* protects everything else */
#endif
DRM_SPINTYPE drw_lock;
+ DRM_SPINTYPE tsk_lock;
/* Usage Counters */
int open_count; /* Outstanding files open */