]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: struct_mutex is not required for allocating the framebuffer
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Feb 2017 10:59:18 +0000 (10:59 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 16 Feb 2017 20:31:13 +0000 (20:31 +0000)
commitbce4c0033b50a8560731c251ca247eb2ae2e62e9
tree457062e55aff6929515c9a306e71bb6abab824d4
parent995583b07ff7b18d7a3bbcb9447ea4ccf6d6aa6d
drm/i915: struct_mutex is not required for allocating the framebuffer

We do not need the BKL struct_mutex in order to allocate a GEM object,
nor to create the framebuffer, so resist the temptation to take the BKL
willy nilly. As this changes the locking contract around internal API
calls, the patch is a little larger than a plain removal of a pair of
mutex_lock/unlock.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170215105919.7347-2-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_fbdev.c