aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_ramht.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-09-01 01:24:36 -0400
committerBen Skeggs <bskeggs@redhat.com>2010-09-24 02:23:30 -0400
commitdac790080467eb12f1049ddca1c101eb0dcc9f0c (patch)
treea7779656812c37cb34cb7129c4925f8b84b65e1f /drivers/gpu/drm/nouveau/nouveau_ramht.h
parente05c5a317efb03854950a3fcc5c9501bfefc7d68 (diff)
drm/nouveau: add spinlock around ramht modifications
Reviewed-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_ramht.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_ramht.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_ramht.h b/drivers/gpu/drm/nouveau/nouveau_ramht.h
index f37737a9364..b79cb5e1a8f 100644
--- a/drivers/gpu/drm/nouveau/nouveau_ramht.h
+++ b/drivers/gpu/drm/nouveau/nouveau_ramht.h
@@ -34,7 +34,8 @@ struct nouveau_ramht_entry {
34 34
35struct nouveau_ramht { 35struct nouveau_ramht {
36 struct drm_device *dev; 36 struct drm_device *dev;
37 int refcount; 37 struct kref refcount;
38 spinlock_t lock;
38 struct nouveau_gpuobj *gpuobj; 39 struct nouveau_gpuobj *gpuobj;
39 struct list_head entries; 40 struct list_head entries;
40 int bits; 41 int bits;