aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-07-23 03:01:12 -0400
committerDavid Herrmann <dh.herrmann@gmail.com>2014-08-05 10:07:45 -0400
commit9f8d21ea276177547725a60cefc1b6da742f14d3 (patch)
tree1511b996ef09915f43246b7ecf145b2bd2ac349b /include/drm
parenta91576d7916f6cce76d30303e60e1ac47cf4a76d (diff)
drm: extract legacy ctxbitmap flushing
The ctxbitmap code is only used by legacy drivers so lets try to keep it as separated as possible. Furthermore, the locking is non-obvious and kinda weird with ctxlist_mutex *and* struct_mutex. Keeping all ctxbitmap access in one file is much easier to review and makes drm_release() more readable. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drmP.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index d3d9be6b83ef..80889982d196 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1242,6 +1242,7 @@ extern int drm_rmctx(struct drm_device *dev, void *data,
1242extern int drm_ctxbitmap_init(struct drm_device *dev); 1242extern int drm_ctxbitmap_init(struct drm_device *dev);
1243extern void drm_ctxbitmap_cleanup(struct drm_device *dev); 1243extern void drm_ctxbitmap_cleanup(struct drm_device *dev);
1244extern void drm_ctxbitmap_free(struct drm_device *dev, int ctx_handle); 1244extern void drm_ctxbitmap_free(struct drm_device *dev, int ctx_handle);
1245extern void drm_ctxbitmap_flush(struct drm_device *dev, struct drm_file *file);
1245 1246
1246extern int drm_setsareactx(struct drm_device *dev, void *data, 1247extern int drm_setsareactx(struct drm_device *dev, void *data,
1247 struct drm_file *file_priv); 1248 struct drm_file *file_priv);