summaryrefslogtreecommitdiff
path: root/linux-core/drmP.h
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-08-31 15:36:40 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-08-31 15:36:40 +0200
commit03c137c5f8d44c374406efe19c01105fcf34d583 (patch)
tree210be3fbc22ec4cb252bccb7a1579ce2b16a36de /linux-core/drmP.h
parentec8c79b79de6544cc09b5a2c85213a5f30e0d906 (diff)
Remove the buffer manager mutex. Use dev->struct_mutex instead.
Add a function to free buffers on hold for destruction if their fence object has expired. Add a timer to periodically call that function when there are buffers pending deletion.
Diffstat (limited to 'linux-core/drmP.h')
-rw-r--r--linux-core/drmP.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index fde89c30..01e3c66f 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -777,13 +777,13 @@ typedef struct drm_buffer_manager{
int initialized;
int has_vram;
int has_tt;
- struct mutex mutex;
drm_mm_t tt_manager;
struct list_head tt_lru;
drm_mm_t vram_manager;
struct list_head vram_lru;
struct list_head unfenced;
struct list_head ddestroy;
+ struct timer_list timer;
} drm_buffer_manager_t;