]> git.openfabrics.org - ~emulex/infiniband.git/commit
drm: extract legacy ctxbitmap flushing
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 23 Jul 2014 07:01:12 +0000 (09:01 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 5 Aug 2014 14:07:45 +0000 (16:07 +0200)
commit9f8d21ea276177547725a60cefc1b6da742f14d3
tree1511b996ef09915f43246b7ecf145b2bd2ac349b
parenta91576d7916f6cce76d30303e60e1ac47cf4a76d
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>
drivers/gpu/drm/drm_context.c
drivers/gpu/drm/drm_fops.c
include/drm/drmP.h