summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv04_graph.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-05-31 12:00:43 +1000
committerBen Skeggs <bskeggs@redhat.com>2010-07-13 10:14:04 +1000
commit047d1d3cae2c4fc5be4fa20a97c8f5ba4fea1c56 (patch)
tree3deb5577cf97e1b9ce4f9ebb57fed56302be6e25 /drivers/gpu/drm/nouveau/nv04_graph.c
parentca6adb8a217fc2a6f20a50b400ba676481a90945 (diff)
downloadblackbird-op-linux-047d1d3cae2c4fc5be4fa20a97c8f5ba4fea1c56.tar.gz
blackbird-op-linux-047d1d3cae2c4fc5be4fa20a97c8f5ba4fea1c56.zip
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/nv04_graph.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv04_graph.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_graph.c b/drivers/gpu/drm/nouveau/nv04_graph.c
index dd09679d31dc..c8973421b635 100644
--- a/drivers/gpu/drm/nouveau/nv04_graph.c
+++ b/drivers/gpu/drm/nouveau/nv04_graph.c
@@ -527,8 +527,7 @@ static int
nv04_graph_mthd_set_ref(struct nouveau_channel *chan, int grclass,
int mthd, uint32_t data)
{
- chan->fence.last_sequence_irq = data;
- nouveau_fence_handler(chan->dev, chan->id);
+ atomic_set(&chan->fence.last_sequence_irq, data);
return 0;
}
OpenPOWER on IntegriCloud