]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] FRV: permit __do_IRQ() to be dispensed with
authorDavid Howells <dhowells@redhat.com>
Tue, 26 Sep 2006 06:32:07 +0000 (23:32 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:53 +0000 (08:48 -0700)
Permit __do_IRQ() to be dispensed with based on a configuration option.

Signed-off-by: David Howells <dhowells@redhat.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/frv/Kconfig
include/linux/irq.h
kernel/irq/handle.c

index 5833808fb823bd19824de4c95412d1f7c4f5eb06..f7b171b92ea2bad7ae134ea0cc5b04cc71f5d1a0 100644 (file)
@@ -29,6 +29,10 @@ config GENERIC_HARDIRQS
        bool
        default y
 
+config GENERIC_HARDIRQS_NO__DO_IRQ
+       bool
+       default y
+
 config GENERIC_TIME
        bool
        default y
index fbf6d901e9c2643a76d18e485864fcfbc8bfc85c..48d3cb3b6a4737d380bdbe21e8be467284640bd1 100644 (file)
@@ -320,7 +320,9 @@ handle_irq_name(void fastcall (*handle)(unsigned int, struct irq_desc *,
  * Monolithic do_IRQ implementation.
  * (is an explicit fastcall, because i386 4KSTACKS calls it from assembly)
  */
+#ifndef CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ
 extern fastcall unsigned int __do_IRQ(unsigned int irq, struct pt_regs *regs);
+#endif
 
 /*
  * Architectures call this to let the generic IRQ layer
@@ -332,10 +334,14 @@ static inline void generic_handle_irq(unsigned int irq, struct pt_regs *regs)
 {
        struct irq_desc *desc = irq_desc + irq;
 
+#ifdef CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ
+       desc->handle_irq(irq, desc, regs);
+#else
        if (likely(desc->handle_irq))
                desc->handle_irq(irq, desc, regs);
        else
                __do_IRQ(irq, regs);
+#endif
 }
 
 /* Handling of unhandled and spurious interrupts: */
index 48a53f68af96452dd77ef113cb6b8ec1ce915276..4c6cdbaed6617a5a0da7b7b39a43fa65a150e572 100644 (file)
@@ -154,6 +154,7 @@ irqreturn_t handle_IRQ_event(unsigned int irq, struct pt_regs *regs,
        return retval;
 }
 
+#ifndef CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ
 /**
  * __do_IRQ - original all in one highlevel IRQ handler
  * @irq:       the interrupt number
@@ -253,6 +254,7 @@ out:
 
        return 1;
 }
+#endif
 
 #ifdef CONFIG_TRACE_IRQFLAGS