提交 b5e4b84d 编写于 作者: P Paulo Zanoni 提交者: Daniel Vetter

drm/i915: intel_unregister_dsm_handler() doesn't need struct_mutex

So don't grab the lock before calling the function.
Reviewed-by: NChris wilson <chris@chris-wilson.co.uk>
Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 5abeca4e
...@@ -15603,12 +15603,10 @@ void intel_modeset_cleanup(struct drm_device *dev) ...@@ -15603,12 +15603,10 @@ void intel_modeset_cleanup(struct drm_device *dev)
*/ */
drm_kms_helper_poll_fini(dev); drm_kms_helper_poll_fini(dev);
mutex_lock(&dev->struct_mutex);
intel_unregister_dsm_handler(); intel_unregister_dsm_handler();
mutex_lock(&dev->struct_mutex);
intel_fbc_disable(dev); intel_fbc_disable(dev);
mutex_unlock(&dev->struct_mutex); mutex_unlock(&dev->struct_mutex);
/* flush any delayed tasks or pending work */ /* flush any delayed tasks or pending work */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册