summaryrefslogtreecommitdiff
path: root/linux-core/drmP.h
diff options
context:
space:
mode:
authorRik Faith <faith@alephnull.com>2000-08-18 18:57:56 +0000
committerRik Faith <faith@alephnull.com>2000-08-18 18:57:56 +0000
commit364d44a24cb7a32ab7ac860e9dde0cd5d082fcd7 (patch)
tree04abfc9f7e3c0908dba82b438f1b354db51e8e92 /linux-core/drmP.h
parentf0f6509a72abf3a3a0a8f26a35b7a8f3d96cbb9b (diff)
Fix ABA problem in drm_freelist_{put,try}
Diffstat (limited to 'linux-core/drmP.h')
-rw-r--r--linux-core/drmP.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index 0fa20571..aa9bc01a 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -328,6 +328,7 @@ typedef struct drm_freelist {
int low_mark; /* Low water mark */
int high_mark; /* High water mark */
atomic_t wfh; /* If waiting for high mark */
+ spinlock_t lock;
} drm_freelist_t;
typedef struct drm_buf_entry {