drm/i915: drop engine_pin/unpin_breadcrumbs_irq
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Mon, 12 Aug 2019 23:31:51 +0000 (16:31 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 13 Aug 2019 06:53:55 +0000 (07:53 +0100)
The last user has been removed, so drop the functions.

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190812233152.2172-2-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/gt/intel_breadcrumbs.c
drivers/gpu/drm/i915/gt/intel_engine.h

index ceba1da619679e3ece44c86f301c1856b9114a96..15bbdd8c7552c6a4656c5cfda763b8ad8fce0642 100644 (file)
@@ -212,28 +212,6 @@ static void signal_irq_work(struct irq_work *work)
        intel_engine_breadcrumbs_irq(engine);
 }
 
-void intel_engine_pin_breadcrumbs_irq(struct intel_engine_cs *engine)
-{
-       struct intel_breadcrumbs *b = &engine->breadcrumbs;
-
-       spin_lock_irq(&b->irq_lock);
-       if (!b->irq_enabled++)
-               irq_enable(engine);
-       GEM_BUG_ON(!b->irq_enabled); /* no overflow! */
-       spin_unlock_irq(&b->irq_lock);
-}
-
-void intel_engine_unpin_breadcrumbs_irq(struct intel_engine_cs *engine)
-{
-       struct intel_breadcrumbs *b = &engine->breadcrumbs;
-
-       spin_lock_irq(&b->irq_lock);
-       GEM_BUG_ON(!b->irq_enabled); /* no underflow! */
-       if (!--b->irq_enabled)
-               irq_disable(engine);
-       spin_unlock_irq(&b->irq_lock);
-}
-
 static void __intel_breadcrumbs_arm_irq(struct intel_breadcrumbs *b)
 {
        struct intel_engine_cs *engine =
index e1228b0e577f6a54aece12c2281bd148c5a87fc9..bc694adcd9ea3dafd40a38d259f04199ae7f5f95 100644 (file)
@@ -338,9 +338,6 @@ void intel_engine_init_execlists(struct intel_engine_cs *engine);
 void intel_engine_init_breadcrumbs(struct intel_engine_cs *engine);
 void intel_engine_fini_breadcrumbs(struct intel_engine_cs *engine);
 
-void intel_engine_pin_breadcrumbs_irq(struct intel_engine_cs *engine);
-void intel_engine_unpin_breadcrumbs_irq(struct intel_engine_cs *engine);
-
 void intel_engine_signal_breadcrumbs(struct intel_engine_cs *engine);
 void intel_engine_disarm_breadcrumbs(struct intel_engine_cs *engine);