diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-26 06:03:27 -0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-26 06:03:27 -0400 |
commit | 1c25595f8d31392b8c36b54c624d01591dbfb87b (patch) | |
tree | 961ce6bb76bdc7aa7b245bb77fa054df6ee9b463 /drivers/gpu/drm/i915/i915_dma.c | |
parent | 447da18742b170b8e09ac71edf63c5798d2dbb0b (diff) |
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_dma.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index ba050ed8df51..b752c31fbcff 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c | |||
@@ -2173,8 +2173,8 @@ int i915_driver_open(struct drm_device *dev, struct drm_file *file) | |||
2173 | 2173 | ||
2174 | file->driver_priv = file_priv; | 2174 | file->driver_priv = file_priv; |
2175 | 2175 | ||
2176 | spin_lock_init(&file_priv->mm.lock); | ||
2176 | INIT_LIST_HEAD(&file_priv->mm.request_list); | 2177 | INIT_LIST_HEAD(&file_priv->mm.request_list); |
2177 | mutex_init(&file_priv->mutex); | ||
2178 | 2178 | ||
2179 | return 0; | 2179 | return 0; |
2180 | } | 2180 | } |