diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-05-30 22:00:43 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-07-12 20:14:04 -0400 |
commit | 047d1d3cae2c4fc5be4fa20a97c8f5ba4fea1c56 (patch) | |
tree | 3deb5577cf97e1b9ce4f9ebb57fed56302be6e25 /drivers/gpu/drm/nouveau/nouveau_channel.c | |
parent | ca6adb8a217fc2a6f20a50b400ba676481a90945 (diff) |
drm/nouveau: reduce usage of fence spinlock to when absolutely necessary
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_channel.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_channel.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_channel.c b/drivers/gpu/drm/nouveau/nouveau_channel.c index 53daeba4581e..90fdcda332be 100644 --- a/drivers/gpu/drm/nouveau/nouveau_channel.c +++ b/drivers/gpu/drm/nouveau/nouveau_channel.c | |||
@@ -258,9 +258,7 @@ nouveau_channel_free(struct nouveau_channel *chan) | |||
258 | nouveau_debugfs_channel_fini(chan); | 258 | nouveau_debugfs_channel_fini(chan); |
259 | 259 | ||
260 | /* Give outstanding push buffers a chance to complete */ | 260 | /* Give outstanding push buffers a chance to complete */ |
261 | spin_lock_irqsave(&chan->fence.lock, flags); | ||
262 | nouveau_fence_update(chan); | 261 | nouveau_fence_update(chan); |
263 | spin_unlock_irqrestore(&chan->fence.lock, flags); | ||
264 | if (chan->fence.sequence != chan->fence.sequence_ack) { | 262 | if (chan->fence.sequence != chan->fence.sequence_ack) { |
265 | struct nouveau_fence *fence = NULL; | 263 | struct nouveau_fence *fence = NULL; |
266 | 264 | ||