aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_state.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-06-01 19:18:48 +1000
committerBen Skeggs <bskeggs@redhat.com>2011-06-23 15:58:25 +1000
commite8a863c10f4ca47e942886dddf70c35e3c2d5dd6 (patch)
treede8d37eb9e33f93c09600e440722a55e355db6b1 /drivers/gpu/drm/nouveau/nouveau_state.c
parentdrm/nouveau: use NULL file_priv for DRM-created channels (diff)
downloadlinux-dev-e8a863c10f4ca47e942886dddf70c35e3c2d5dd6.tar.xz
linux-dev-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_state.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c
index 9965063beb69..b38b28066836 100644
--- a/drivers/gpu/drm/nouveau/nouveau_state.c
+++ b/drivers/gpu/drm/nouveau/nouveau_state.c
@@ -774,6 +774,8 @@ nouveau_open(struct drm_device *dev, struct drm_file *file_priv)
return -ENOMEM;
spin_lock_init(&fpriv->lock);
+ INIT_LIST_HEAD(&fpriv->channels);
+
file_priv->driver_priv = fpriv;
return 0;
}