summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-09-26 11:03:27 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-26 11:03:27 +0100
commit1c25595f8d31392b8c36b54c624d01591dbfb87b (patch)
tree961ce6bb76bdc7aa7b245bb77fa054df6ee9b463 /drivers/gpu/drm/i915/i915_drv.h
parent447da18742b170b8e09ac71edf63c5798d2dbb0b (diff)
downloadlwn-1c25595f8d31392b8c36b54c624d01591dbfb87b.tar.gz
lwn-1c25595f8d31392b8c36b54c624d01591dbfb87b.zip
drm/i915: Convert the file mutex into a spinlock
Daniel Vetter pointed out that in this case is would be clearer and cleaner to use a spinlock instead of a mutex to protect the per-file request list manipulation. Make it so. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index f2ff258cdfd5..710d59ea479c 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -851,8 +851,8 @@ struct drm_i915_gem_request {
};
struct drm_i915_file_private {
- struct mutex mutex;
struct {
+ struct spinlock lock;
struct list_head request_list;
} mm;
};