[Intel-gfx] [PATCH 6/8] drm/i915: intel_unregister_dsm_handler() doesn't need struct_mutex
Paulo Zanoni
przanoni at gmail.com
Thu Jul 2 15:25:12 PDT 2015
From: Paulo Zanoni <paulo.r.zanoni at intel.com>
So don't grab the lock before calling the function.
Reviewed-by: Chris wilson <chris at chris-wilson.co.uk>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
---
drivers/gpu/drm/i915/intel_display.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 219e4c5..01d7cff 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -15603,12 +15603,10 @@ void intel_modeset_cleanup(struct drm_device *dev)
*/
drm_kms_helper_poll_fini(dev);
- mutex_lock(&dev->struct_mutex);
-
intel_unregister_dsm_handler();
+ mutex_lock(&dev->struct_mutex);
intel_fbc_disable(dev);
-
mutex_unlock(&dev->struct_mutex);
/* flush any delayed tasks or pending work */
--
2.1.4
More information about the Intel-gfx
mailing list