]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: move BUILD_IRQ macro magic to i8259_64.c
authorThomas Gleixner <tglx@linutronix.de>
Fri, 2 May 2008 19:55:12 +0000 (21:55 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 12 May 2008 19:28:05 +0000 (21:28 +0200)
i8259_64.c is the only place which uses those macros.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/i8259_64.c
include/asm-x86/hw_irq_64.h

index fa57a15685082294e7b2d33c5d0bb450b2348d56..c4ae4769ce678072a06d70932a234b7cf295b839 100644 (file)
  * interrupt-controller happy.
  */
 
+#define IRQ_NAME2(nr) nr##_interrupt(void)
+#define IRQ_NAME(nr) IRQ_NAME2(IRQ##nr)
+
+/*
+ *     SMP has a few special interrupts for IPI messages
+ */
+
+#define BUILD_IRQ(nr)                          \
+       asmlinkage void IRQ_NAME(nr);           \
+       asm("\n.p2align\n"                      \
+           "IRQ" #nr "_interrupt:\n\t"         \
+           "push $~(" #nr ") ; "               \
+           "jmp common_interrupt");
+
 #define BI(x,y) \
        BUILD_IRQ(x##y)
 
index 98c9d494a7115f13812ce6bb32a2788fb1e4cc3b..9305f7456a7f3a9c6f18edb630759c315817d5f5 100644 (file)
@@ -17,18 +17,4 @@ extern void native_init_IRQ(void);
 
 #include <asm/ptrace.h>
 
-#define IRQ_NAME2(nr) nr##_interrupt(void)
-#define IRQ_NAME(nr) IRQ_NAME2(IRQ##nr)
-
-/*
- *     SMP has a few special interrupts for IPI messages
- */
-
-#define BUILD_IRQ(nr)                          \
-       asmlinkage void IRQ_NAME(nr);           \
-       asm("\n.p2align\n"                      \
-           "IRQ" #nr "_interrupt:\n\t"         \
-           "push $~(" #nr ") ; "               \
-           "jmp common_interrupt");
-
 #endif