Skip to content

Commit 333e8eb

Browse files
mpemaddy-kerneldev
authored andcommitted
genirq: Remove IRQ_EDGE_EOI_HANDLER
The powerpc Cell blade support, now removed, was the only user of IRQ_EDGE_EOI_HANDLER, so remove it. Acked-by: Thomas Gleixner <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Signed-off-by: Madhavan Srinivasan <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 215bd64 commit 333e8eb

File tree

2 files changed

+0
-51
lines changed

2 files changed

+0
-51
lines changed

kernel/irq/Kconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ config GENERIC_IRQ_INJECTION
5151
config HARDIRQS_SW_RESEND
5252
bool
5353

54-
# Edge style eoi based handler (cell)
55-
config IRQ_EDGE_EOI_HANDLER
56-
bool
57-
5854
# Generic configurable interrupt chip implementation
5955
config GENERIC_IRQ_CHIP
6056
bool

kernel/irq/chip.c

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -838,53 +838,6 @@ void handle_edge_irq(struct irq_desc *desc)
838838
}
839839
EXPORT_SYMBOL(handle_edge_irq);
840840

841-
#ifdef CONFIG_IRQ_EDGE_EOI_HANDLER
842-
/**
843-
* handle_edge_eoi_irq - edge eoi type IRQ handler
844-
* @desc: the interrupt description structure for this irq
845-
*
846-
* Similar as the above handle_edge_irq, but using eoi and w/o the
847-
* mask/unmask logic.
848-
*/
849-
void handle_edge_eoi_irq(struct irq_desc *desc)
850-
{
851-
struct irq_chip *chip = irq_desc_get_chip(desc);
852-
853-
raw_spin_lock(&desc->lock);
854-
855-
desc->istate &= ~(IRQS_REPLAY | IRQS_WAITING);
856-
857-
if (!irq_may_run(desc)) {
858-
desc->istate |= IRQS_PENDING;
859-
goto out_eoi;
860-
}
861-
862-
/*
863-
* If its disabled or no action available then mask it and get
864-
* out of here.
865-
*/
866-
if (irqd_irq_disabled(&desc->irq_data) || !desc->action) {
867-
desc->istate |= IRQS_PENDING;
868-
goto out_eoi;
869-
}
870-
871-
kstat_incr_irqs_this_cpu(desc);
872-
873-
do {
874-
if (unlikely(!desc->action))
875-
goto out_eoi;
876-
877-
handle_irq_event(desc);
878-
879-
} while ((desc->istate & IRQS_PENDING) &&
880-
!irqd_irq_disabled(&desc->irq_data));
881-
882-
out_eoi:
883-
chip->irq_eoi(&desc->irq_data);
884-
raw_spin_unlock(&desc->lock);
885-
}
886-
#endif
887-
888841
/**
889842
* handle_percpu_irq - Per CPU local irq handler
890843
* @desc: the interrupt description structure for this irq

0 commit comments

Comments
 (0)