[Intel-gfx] [PATCH 8/8] drm/i915: remove struct_mutex lock from intel_modeset_cleanup()

Paulo Zanoni przanoni at gmail.com
Tue Jun 30 06:53:12 PDT 2015


From: Paulo Zanoni <paulo.r.zanoni at intel.com>

Neither intel_unregister_dsm_handler() nor intel_fbc_disable() need
the lock.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
---
 drivers/gpu/drm/i915/intel_display.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 0d98332..2d2df8b 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -15550,14 +15550,10 @@ void intel_modeset_cleanup(struct drm_device *dev)
 	 */
 	drm_kms_helper_poll_fini(dev);
 
-	mutex_lock(&dev->struct_mutex);
-
 	intel_unregister_dsm_handler();
 
 	intel_fbc_disable(dev);
 
-	mutex_unlock(&dev->struct_mutex);
-
 	/* flush any delayed tasks or pending work */
 	flush_scheduled_work();
 
-- 
2.1.4



More information about the Intel-gfx mailing list