Skip to content

Commit 28e3fed

Browse files
ralfbaechleLinus Torvalds
authored andcommitted
Compile handle_percpu_irq even for uniprocessor kernels
Compiling handle_percpu_irq only on uniprocessor generates an artificial special case so a typical use like: set_irq_chip_and_handler(irq, &some_irq_type, handle_percpu_irq); needs to be conditionally compiled only on SMP systems as well and an alternative UP construct is usually needed - for no good reason. This fixes uniprocessor configurations for some MIPS SMP systems. Signed-off-by: Ralf Baechle <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent b4471cb commit 28e3fed

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

kernel/irq/chip.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,6 @@ handle_edge_irq(unsigned int irq, struct irq_desc *desc)
503503
spin_unlock(&desc->lock);
504504
}
505505

506-
#ifdef CONFIG_SMP
507506
/**
508507
* handle_percpu_IRQ - Per CPU local irq handler
509508
* @irq: the interrupt number
@@ -529,8 +528,6 @@ handle_percpu_irq(unsigned int irq, struct irq_desc *desc)
529528
desc->chip->eoi(irq);
530529
}
531530

532-
#endif /* CONFIG_SMP */
533-
534531
void
535532
__set_irq_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained,
536533
const char *name)

0 commit comments

Comments
 (0)