drm/i915: kill dev_priv->mchdev_lock
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 8 Aug 2012 21:35:36 +0000 (23:35 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 9 Aug 2012 19:53:01 +0000 (21:53 +0200)
It's only ever a pointer to the global mchdev_lock, and we don't use
it at all.

Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_pm.c

index 1614097..261fe21 100644 (file)
@@ -850,7 +850,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;
 
index e1439ae..212b28e 100644 (file)
@@ -3188,7 +3188,6 @@ void intel_gpu_ips_init(struct drm_i915_private *dev_priv)
         * set up, to avoid intel-ips sneaking in and reading bogus values. */
        spin_lock(&mchdev_lock);
        i915_mch_dev = dev_priv;
-       dev_priv->mchdev_lock = &mchdev_lock;
        spin_unlock(&mchdev_lock);
 
        ips_ping_for_i915_load();