aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_drv.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-09-01 01:24:37 -0400
committerBen Skeggs <bskeggs@redhat.com>2010-09-24 02:23:34 -0400
commiteb9bcbdc45369105bc004a82c7bed60655aae926 (patch)
treecd5202c0e963342610eae7f2b1b63d3fcf30a35b /drivers/gpu/drm/nouveau/nouveau_drv.h
parentdac790080467eb12f1049ddca1c101eb0dcc9f0c (diff)
drm/nouveau: fix gpuobj refcount to use atomics
Reviewed-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_drv.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h
index 71e27087951b..8ee854a4b3f5 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -137,6 +137,7 @@ enum nouveau_flags {
137#define NVOBJ_FLAG_ZERO_FREE (1 << 2) 137#define NVOBJ_FLAG_ZERO_FREE (1 << 2)
138struct nouveau_gpuobj { 138struct nouveau_gpuobj {
139 struct drm_device *dev; 139 struct drm_device *dev;
140 struct kref refcount;
140 struct list_head list; 141 struct list_head list;
141 142
142 struct drm_mm_node *im_pramin; 143 struct drm_mm_node *im_pramin;
@@ -145,7 +146,6 @@ struct nouveau_gpuobj {
145 int im_bound; 146 int im_bound;
146 147
147 uint32_t flags; 148 uint32_t flags;
148 int refcount;
149 149
150 u32 size; 150 u32 size;
151 u32 pinst; 151 u32 pinst;