[Top] [All Lists]

[PATCH] Compile handle_percpu_irq even for uniprocessor kernels

To: Andrew Morton <>, Thomas Gleixner <>, Molnar Ingo <>,
Subject: [PATCH] Compile handle_percpu_irq even for uniprocessor kernels
From: Ralf Baechle <>
Date: Thu, 27 Sep 2007 12:24:48 +0100
Original-recipient: rfc822;
User-agent: Mutt/1.5.14 (2007-02-12)
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.

Signed-off-by: Ralf Baechle <>

This fixes uniprocessor configurations for some MIPS SMP systems.

diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index f1a73f0..9b5dff6 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -503,7 +503,6 @@ out_unlock:
-#ifdef CONFIG_SMP
  *     handle_percpu_IRQ - Per CPU local irq handler
  *     @irq:   the interrupt number
@@ -529,8 +528,6 @@ handle_percpu_irq(unsigned int irq, struct irq_desc *desc)
-#endif /* CONFIG_SMP */
 __set_irq_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained,
                  const char *name)

<Prev in Thread] Current Thread [Next in Thread>