]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm: Add a non-locking version of drm_kms_helper_poll_enable(), v2
authorEgbert Eich <eich@suse.de>
Wed, 23 Sep 2015 14:13:00 +0000 (16:13 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 30 Sep 2015 13:04:08 +0000 (16:04 +0300)
commit4ad640e99e5e5514d623210bc937e665ffd8f43f
tree67c1225743fac4977baf2067376603a4cd24c2a7
parentdfc53c5e73f8b73abf920241e45eab87335ae742
drm: Add a non-locking version of drm_kms_helper_poll_enable(), v2

drm_kms_helper_poll_enable() was converted to lock the mode_config
mutex in commit 8c4ccc4ab6f64e859d4ff8d7c02c2ed2e956e07f
("drm/probe-helper: Grab mode_config.mutex in poll_init/enable").

This disregarded the cases where this function is called from a context
where this mutex is already locked.

Add a non-locking version as well.

Changes since v1:
- use function name suffix '_locked' for the function that
  is to be called from a locked context.

Signed-off-by: Egbert Eich <eich@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/drm_probe_helper.c
include/drm/drm_crtc_helper.h