summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_notifier.c
diff options
context:
space:
mode:
authorBen Skeggs2011-06-01 11:18:48 +0200
committerBen Skeggs2011-06-23 07:58:25 +0200
commite8a863c10f4ca47e942886dddf70c35e3c2d5dd6 (patch)
treede8d37eb9e33f93c09600e440722a55e355db6b1 /drivers/gpu/drm/nouveau/nouveau_notifier.c
parentdrm/nouveau: use NULL file_priv for DRM-created channels (diff)
downloadkernel-qcow2-linux-e8a863c10f4ca47e942886dddf70c35e3c2d5dd6.tar.gz
kernel-qcow2-linux-e8a863c10f4ca47e942886dddf70c35e3c2d5dd6.tar.xz
kernel-qcow2-linux-e8a863c10f4ca47e942886dddf70c35e3c2d5dd6.zip
drm/nouveau: store a per-client channel list
Removes the need to disable IRQs to lookup channel struct on every pushbuf ioctl, among others. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_notifier.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_notifier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_notifier.c b/drivers/gpu/drm/nouveau/nouveau_notifier.c
index 5b39718ae1f8..104b93b9f852 100644
--- a/drivers/gpu/drm/nouveau/nouveau_notifier.c
+++ b/drivers/gpu/drm/nouveau/nouveau_notifier.c
@@ -183,7 +183,7 @@ nouveau_ioctl_notifier_alloc(struct drm_device *dev, void *data,
if (unlikely(dev_priv->card_type >= NV_C0))
return -EINVAL;
- chan = nouveau_channel_get(dev, file_priv, na->channel);
+ chan = nouveau_channel_get(file_priv, na->channel);
if (IS_ERR(chan))
return PTR_ERR(chan);