From patchwork Wed Aug 8 21:35:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 1297681 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 8B6473FCFC for ; Wed, 8 Aug 2012 21:22:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7798DA0B06 for ; Wed, 8 Aug 2012 14:22:20 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 13AFCA0AE2 for ; Wed, 8 Aug 2012 14:19:11 -0700 (PDT) Received: by mail-we0-f177.google.com with SMTP id r3so863605wey.36 for ; Wed, 08 Aug 2012 14:19:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=E4BhiYKxqKBH3eMCORJ+tgKrtboIkWCBxNnn7X0Y2gY=; b=Yx/Aruew6LbmeNctgtJFWs9UFFEMesu/Ucbxa/HJrqABH7n8sXH2CI7IqxtPngBR+M fKY4NXtUsRujqxu5d+RYAwE4mSWAJklznGCVpAGVNewshrRpQTnb+j+Az3CIurhRIqC8 Z4BsVnFTjxS+HTRXLGJGocR8Bly/50I93Nc10= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=E4BhiYKxqKBH3eMCORJ+tgKrtboIkWCBxNnn7X0Y2gY=; b=E3a69DBEovM0uTYqfIIH1enwXYK/RYSuc1sJ8ExfnAg/OUsXnurEBi7mZ4EG1ChrbG jNcqvuaTVU1UAkChdAYs4qU6CZlcuyiZpA19ZvJycTVZbk2tONDBygQlbkWa4nWymrUt 3mR/MWNQit+IghWS3bO4PsmODdzAsOJle+FejjVkoVOQBqpuZE97LK81GJfEZcBqxMyW L3r0E7/UVuHLbg/KEPEqEhsKwasWKPSWzcAUjZc7pNIMYIewJMtkGG+AAG6/GL3j4VAo T2uOB9TXmTcC0uvGeN1AKTqFLqKGdFwFrvhBal2PvSKPTZzjMDgUiLIyIZEX3ay3silT DSog== Received: by 10.180.84.1 with SMTP id u1mr859419wiy.15.1344460751738; Wed, 08 Aug 2012 14:19:11 -0700 (PDT) Received: from hummel.ffwll.local (178-83-130-250.dynamic.hispeed.ch. [178.83.130.250]) by mx.google.com with ESMTPS id o2sm10646321wiz.11.2012.08.08.14.19.10 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Aug 2012 14:19:11 -0700 (PDT) From: Daniel Vetter To: Intel Graphics Development Date: Wed, 8 Aug 2012 23:35:36 +0200 Message-Id: <1344461740-1231-5-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1344461740-1231-1-git-send-email-daniel.vetter@ffwll.ch> References: <1344461740-1231-1-git-send-email-daniel.vetter@ffwll.ch> X-Gm-Message-State: ALoCoQn9r8nOn5otQyIK0Ar/9aV+WrU7CHiTUdikcNVxvfTjlJBTJeMp2f95QTUUlDfyVxKOXvjF Cc: Daniel Vetter Subject: [Intel-gfx] [PATCH 4/8] drm/i915: kill dev_priv->mchdev_lock X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org It's only ever a pointer to the global mchdev_lock, and we don't use it at all. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_drv.h | 1 - drivers/gpu/drm/i915/intel_pm.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 2d354e4..d6072c0 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -824,7 +824,6 @@ typedef struct drm_i915_private { int c_m; int r_t; u8 corr; - spinlock_t *mchdev_lock; enum no_fbc_reason no_fbc_reason; diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 3ab86bd..44d58e7 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -3186,7 +3186,6 @@ void intel_gpu_ips_init(struct drm_i915_private *dev_priv) { spin_lock(&mchdev_lock); i915_mch_dev = dev_priv; - dev_priv->mchdev_lock = &mchdev_lock; spin_unlock(&mchdev_lock); ips_ping_for_i915_load();