Skip to content

Commit

Permalink
drm/i915: kill dev_priv->mchdev_lock
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Vetter committed Aug 9, 2012
1 parent c6a828d commit 35eb732
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion drivers/gpu/drm/i915/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion drivers/gpu/drm/i915/intel_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 35eb732

Please sign in to comment.