drm/i915: clean up unused ring_get_irq/ring_put_irq functions
authorFeng, Boqun <boqun.feng@intel.com>
Thu, 28 Apr 2011 09:15:33 +0000 (17:15 +0800)
committerKeith Packard <keithp@keithp.com>
Mon, 16 May 2011 19:54:16 +0000 (12:54 -0700)
This patch depends on patch "drm/i915: fix user irq miss in BSD ring on
g4x".
Once the previous patch apply, ring_get_irq/ring_put_irq become unused.
So simply remove them.

Signed-off-by: Feng, Boqun <boqun.feng@intel.com>
Reviewed-by: Xiang, Haihao <haihao.xiang@intel.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_ringbuffer.c

index 69cdbcd6e5b7c75247d5037f1f8a769c2a5d557b..95c4b1429935d562a6ee54f464f0bd52ba3ae6ba 100644 (file)
@@ -620,35 +620,6 @@ ring_add_request(struct intel_ring_buffer *ring,
        return 0;
 }
 
-static bool
-ring_get_irq(struct intel_ring_buffer *ring, u32 flag)
-{
-       struct drm_device *dev = ring->dev;
-       drm_i915_private_t *dev_priv = dev->dev_private;
-
-       if (!dev->irq_enabled)
-              return false;
-
-       spin_lock(&ring->irq_lock);
-       if (ring->irq_refcount++ == 0)
-               ironlake_enable_irq(dev_priv, flag);
-       spin_unlock(&ring->irq_lock);
-
-       return true;
-}
-
-static void
-ring_put_irq(struct intel_ring_buffer *ring, u32 flag)
-{
-       struct drm_device *dev = ring->dev;
-       drm_i915_private_t *dev_priv = dev->dev_private;
-
-       spin_lock(&ring->irq_lock);
-       if (--ring->irq_refcount == 0)
-               ironlake_disable_irq(dev_priv, flag);
-       spin_unlock(&ring->irq_lock);
-}
-
 static bool
 gen6_ring_get_irq(struct intel_ring_buffer *ring, u32 gflag, u32 rflag)
 {