From: Chris Wilson Date: Wed, 13 Aug 2014 12:09:46 +0000 (+0100) Subject: drm/i915: Localise the fbdev console lock frobbing X-Git-Tag: fixes-against-v3.18-rc2~73^2~73^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82e3b8c130f046b7dd1e7898c10e40edb52fee6d;p=pandora-kernel.git drm/i915: Localise the fbdev console lock frobbing Rather than take and release the console_lock() around a non-existent DRM_I915_FBDEV, move the lock acquisation into the callee where it will be compiled out by the config option entirely. This includes moving the deferred fb_set_suspend() dance and encapsulating it entirely within intel_fbdev.c. v2: Use an integral work item so that we can explicitly flush the work upon suspend/unload. Signed-off-by: Chris Wilson Cc: Daniel Vetter [danvet: Add the flush_work in fbdev_fini per the mailing list discussion. And s/BUG_ON/WARN_ON/ because.] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed