Commit 1277a532 authored by Thomas Gleixner's avatar Thomas Gleixner

genirq: Simplify handle_irq_event()

Now that all core users are converted one layer can go.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 0877d662
...@@ -51,10 +51,11 @@ static void warn_no_thread(unsigned int irq, struct irqaction *action) ...@@ -51,10 +51,11 @@ static void warn_no_thread(unsigned int irq, struct irqaction *action)
"but no thread function available.", irq, action->name); "but no thread function available.", irq, action->name);
} }
static irqreturn_t __handle_irq_event(unsigned int irq, struct irqaction *action) irqreturn_t
handle_irq_event_percpu(struct irq_desc *desc, struct irqaction *action)
{ {
irqreturn_t ret, retval = IRQ_NONE; irqreturn_t ret, retval = IRQ_NONE;
unsigned int status = 0; unsigned int status = 0, irq = desc->irq_data.irq;
do { do {
trace_irq_handler_entry(irq, action); trace_irq_handler_entry(irq, action);
...@@ -111,17 +112,9 @@ static irqreturn_t __handle_irq_event(unsigned int irq, struct irqaction *action ...@@ -111,17 +112,9 @@ static irqreturn_t __handle_irq_event(unsigned int irq, struct irqaction *action
if (status & IRQF_SAMPLE_RANDOM) if (status & IRQF_SAMPLE_RANDOM)
add_interrupt_randomness(irq); add_interrupt_randomness(irq);
return retval;
}
irqreturn_t
handle_irq_event_percpu(struct irq_desc *desc, struct irqaction *action)
{
irqreturn_t ret = __handle_irq_event(desc->irq_data.irq, action);
if (!noirqdebug) if (!noirqdebug)
note_interrupt(desc->irq_data.irq, desc, ret); note_interrupt(irq, desc, ret);
return ret; return retval;
} }
irqreturn_t handle_irq_event(struct irq_desc *desc) irqreturn_t handle_irq_event(struct irq_desc *desc)
...@@ -149,5 +142,5 @@ irqreturn_t handle_irq_event(struct irq_desc *desc) ...@@ -149,5 +142,5 @@ irqreturn_t handle_irq_event(struct irq_desc *desc)
*/ */
irqreturn_t handle_IRQ_event(unsigned int irq, struct irqaction *action) irqreturn_t handle_IRQ_event(unsigned int irq, struct irqaction *action)
{ {
return __handle_irq_event(irq, action); return handle_irq_event_percpu(irq_to_desc(irq), action);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment