diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-07-23 03:01:12 -0400 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-08-05 10:07:45 -0400 |
commit | 9f8d21ea276177547725a60cefc1b6da742f14d3 (patch) | |
tree | 1511b996ef09915f43246b7ecf145b2bd2ac349b /include/drm | |
parent | a91576d7916f6cce76d30303e60e1ac47cf4a76d (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.h | 1 |
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, | |||
1242 | extern int drm_ctxbitmap_init(struct drm_device *dev); | 1242 | extern int drm_ctxbitmap_init(struct drm_device *dev); |
1243 | extern void drm_ctxbitmap_cleanup(struct drm_device *dev); | 1243 | extern void drm_ctxbitmap_cleanup(struct drm_device *dev); |
1244 | extern void drm_ctxbitmap_free(struct drm_device *dev, int ctx_handle); | 1244 | extern void drm_ctxbitmap_free(struct drm_device *dev, int ctx_handle); |
1245 | extern void drm_ctxbitmap_flush(struct drm_device *dev, struct drm_file *file); | ||
1245 | 1246 | ||
1246 | extern int drm_setsareactx(struct drm_device *dev, void *data, | 1247 | extern int drm_setsareactx(struct drm_device *dev, void *data, |
1247 | struct drm_file *file_priv); | 1248 | struct drm_file *file_priv); |