Skip to content

Commit

Permalink
x86: move BUILD_IRQ macro magic to i8259_64.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed May 12, 2008
1 parent 9b7dc56 commit 0bc471d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 14 additions & 0 deletions arch/x86/kernel/i8259_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@
* 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)

Expand Down
14 changes: 0 additions & 14 deletions include/asm-x86/hw_irq_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0bc471d

Please sign in to comment.