Skip to content

Commit 0dcdbc9

Browse files
Jiang LiuKAGA-KOKO
authored andcommitted
genirq: Remove the irq argument from note_interrupt()
Only required for the slow path. Retrieve it from irq descriptor if necessary. [ tglx: Split out from combo patch. Left [try_]misrouted_irq() untouched as there is no win in the slow path ] Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Cc: Tony Luck <tony.luck@intel.com> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: Yinghai Lu <yinghai@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Jason Cooper <jason@lakedaemon.net> Cc: Kevin Cernekee <cernekee@gmail.com> Cc: Arnd Bergmann <arnd@arndb.de> Link: http://lkml.kernel.org/r/1433391238-19471-19-git-send-email-jiang.liu@linux.intel.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent c1e5bd8 commit 0dcdbc9

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

‎include/linux/irq.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,7 @@ extern int irq_chip_set_vcpu_affinity_parent(struct irq_data *data,
487487
#endif
488488

489489
/* Handling of unhandled and spurious interrupts: */
490-
extern void note_interrupt(unsigned int irq, struct irq_desc *desc,
491-
irqreturn_t action_ret);
490+
extern void note_interrupt(struct irq_desc *desc, irqreturn_t action_ret);
492491

493492

494493
/* Enable/disable irq debugging output: */

‎kernel/irq/chip.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ void handle_nested_irq(unsigned int irq)
328328

329329
action_ret = action->thread_fn(action->irq, action->dev_id);
330330
if (!noirqdebug)
331-
note_interrupt(irq, desc, action_ret);
331+
note_interrupt(desc, action_ret);
332332

333333
raw_spin_lock_irq(&desc->lock);
334334
irqd_clear(&desc->irq_data, IRQD_IRQ_INPROGRESS);

‎kernel/irq/handle.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ handle_irq_event_percpu(struct irq_desc *desc, struct irqaction *action)
176176
add_interrupt_randomness(irq, flags);
177177

178178
if (!noirqdebug)
179-
note_interrupt(irq, desc, retval);
179+
note_interrupt(desc, retval);
180180
return retval;
181181
}
182182

‎kernel/irq/spurious.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,10 @@ try_misrouted_irq(unsigned int irq, struct irq_desc *desc,
270270

271271
#define SPURIOUS_DEFERRED 0x80000000
272272

273-
void note_interrupt(unsigned int irq, struct irq_desc *desc,
274-
irqreturn_t action_ret)
273+
void note_interrupt(struct irq_desc *desc, irqreturn_t action_ret)
275274
{
275+
unsigned int irq;
276+
276277
if (desc->istate & IRQS_POLL_INPROGRESS ||
277278
irq_settings_is_polled(desc))
278279
return;
@@ -396,6 +397,7 @@ void note_interrupt(unsigned int irq, struct irq_desc *desc,
396397
desc->last_unhandled = jiffies;
397398
}
398399

400+
irq = irq_desc_get_irq(desc);
399401
if (unlikely(try_misrouted_irq(irq, desc, action_ret))) {
400402
int ok = misrouted_irq(irq);
401403
if (action_ret == IRQ_NONE)

0 commit comments

Comments
 (0)