From patchwork Tue Jun 30 13:53:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paulo Zanoni X-Patchwork-Id: 6696181 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 027129F3A0 for ; Tue, 30 Jun 2015 13:54:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 38EA220495 for ; Tue, 30 Jun 2015 13:54:21 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 5960B20457 for ; Tue, 30 Jun 2015 13:54:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B20836E908; Tue, 30 Jun 2015 06:54:19 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-qg0-f49.google.com (mail-qg0-f49.google.com [209.85.192.49]) by gabe.freedesktop.org (Postfix) with ESMTPS id 633696E908 for ; Tue, 30 Jun 2015 06:54:14 -0700 (PDT) Received: by qgii30 with SMTP id i30so4072620qgi.1 for ; Tue, 30 Jun 2015 06:54:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Gg+o2kQ0OmH+EbQsmMKcJKpznmUbK6XhRorHz+fLOQI=; b=LwaZOiQgUg7vFZtK5VsamX3xjmoByAsbRxHCWDh4BuP9eGTtlfDwJCJjYJfXoyomQz iIFTFazC9LdIQOxrE3sMhi9/a0ZyEbq7WUonqhmwcCu2m4TF0DhziHqf4GcoDE6hrieR HynzC3Fko+omLMd7zxZ13umC5w1x0B5om2uNJWDzbRAEBTn+UUUmEJjGoVhXknQWT7WA 4wBOKWH2k0KMEei/fVE1/zDAQeET25hKauE4OGBTcglB/vKHkBEKLBnGtL4mv8j/9gB0 8+RMKrngT3oA1Syck8yIWG2EYZpCncs6DRvO6uJm1BvcQX7A5vSGILfJD26rPa4WyQvE oY6g== X-Received: by 10.140.152.201 with SMTP id 192mr28145146qhy.26.1435672453704; Tue, 30 Jun 2015 06:54:13 -0700 (PDT) Received: from localhost.localdomain (r130-pw-tresbarras.ibys.com.br. [189.76.1.243]) by mx.google.com with ESMTPSA id e10sm4651585qka.40.2015.06.30.06.54.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Jun 2015 06:54:13 -0700 (PDT) From: Paulo Zanoni To: intel-gfx@lists.freedesktop.org Date: Tue, 30 Jun 2015 10:53:12 -0300 Message-Id: <1435672392-7329-9-git-send-email-przanoni@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1435672392-7329-1-git-send-email-przanoni@gmail.com> References: <1435672392-7329-1-git-send-email-przanoni@gmail.com> Cc: Paulo Zanoni Subject: [Intel-gfx] [PATCH 8/8] drm/i915: remove struct_mutex lock from intel_modeset_cleanup() X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Paulo Zanoni Neither intel_unregister_dsm_handler() nor intel_fbc_disable() need the lock. Signed-off-by: Paulo Zanoni --- 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();