diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-05-31 12:00:43 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-07-13 10:14:04 +1000 |
commit | 047d1d3cae2c4fc5be4fa20a97c8f5ba4fea1c56 (patch) | |
tree | 3deb5577cf97e1b9ce4f9ebb57fed56302be6e25 /drivers/gpu/drm/nouveau/nv04_graph.c | |
parent | ca6adb8a217fc2a6f20a50b400ba676481a90945 (diff) | |
download | op-kernel-dev-047d1d3cae2c4fc5be4fa20a97c8f5ba4fea1c56.zip op-kernel-dev-047d1d3cae2c4fc5be4fa20a97c8f5ba4fea1c56.tar.gz |
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.c | 3 |
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 dd09679..c897342 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; } |