diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-06 19:40:27 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-19 06:58:13 -0500 |
commit | 1277a5325adfc53caac7dd3dac5d3d2fd2a125b4 (patch) | |
tree | a58644a8fa81e3fab055640d33002ebb3bf08754 | |
parent | 0877d66257082ce86fca8f9826b91870575b272c (diff) |
genirq: Simplify handle_irq_event()
Now that all core users are converted one layer can go.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | kernel/irq/handle.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index 4ef059478ebf..ff40e0f5e2e2 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c | |||
@@ -51,10 +51,11 @@ static void warn_no_thread(unsigned int irq, struct irqaction *action) | |||
51 | "but no thread function available.", irq, action->name); | 51 | "but no thread function available.", irq, action->name); |
52 | } | 52 | } |
53 | 53 | ||
54 | static irqreturn_t __handle_irq_event(unsigned int irq, struct irqaction *action) | 54 | irqreturn_t |
55 | handle_irq_event_percpu(struct irq_desc *desc, struct irqaction *action) | ||
55 | { | 56 | { |
56 | irqreturn_t ret, retval = IRQ_NONE; | 57 | irqreturn_t ret, retval = IRQ_NONE; |
57 | unsigned int status = 0; | 58 | unsigned int status = 0, irq = desc->irq_data.irq; |
58 | 59 | ||
59 | do { | 60 | do { |
60 | trace_irq_handler_entry(irq, action); | 61 | trace_irq_handler_entry(irq, action); |
@@ -111,17 +112,9 @@ static irqreturn_t __handle_irq_event(unsigned int irq, struct irqaction *action | |||
111 | if (status & IRQF_SAMPLE_RANDOM) | 112 | if (status & IRQF_SAMPLE_RANDOM) |
112 | add_interrupt_randomness(irq); | 113 | add_interrupt_randomness(irq); |
113 | 114 | ||
114 | return retval; | ||
115 | } | ||
116 | |||
117 | irqreturn_t | ||
118 | handle_irq_event_percpu(struct irq_desc *desc, struct irqaction *action) | ||
119 | { | ||
120 | irqreturn_t ret = __handle_irq_event(desc->irq_data.irq, action); | ||
121 | |||
122 | if (!noirqdebug) | 115 | if (!noirqdebug) |
123 | note_interrupt(desc->irq_data.irq, desc, ret); | 116 | note_interrupt(irq, desc, ret); |
124 | return ret; | 117 | return retval; |
125 | } | 118 | } |
126 | 119 | ||
127 | irqreturn_t handle_irq_event(struct irq_desc *desc) | 120 | irqreturn_t handle_irq_event(struct irq_desc *desc) |
@@ -149,5 +142,5 @@ irqreturn_t handle_irq_event(struct irq_desc *desc) | |||
149 | */ | 142 | */ |
150 | irqreturn_t handle_IRQ_event(unsigned int irq, struct irqaction *action) | 143 | irqreturn_t handle_IRQ_event(unsigned int irq, struct irqaction *action) |
151 | { | 144 | { |
152 | return __handle_irq_event(irq, action); | 145 | return handle_irq_event_percpu(irq_to_desc(irq), action); |
153 | } | 146 | } |