diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-09-01 15:24:36 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-09-24 16:23:30 +1000 |
commit | dac790080467eb12f1049ddca1c101eb0dcc9f0c (patch) | |
tree | a7779656812c37cb34cb7129c4925f8b84b65e1f /drivers/gpu/drm/nouveau/nouveau_ramht.h | |
parent | e05c5a317efb03854950a3fcc5c9501bfefc7d68 (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.h | 3 |
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 { struct nouveau_ramht { struct drm_device *dev; - int refcount; + struct kref refcount; + spinlock_t lock; struct nouveau_gpuobj *gpuobj; struct list_head entries; int bits; |