4 * (C) 1992, 1993 Linus Torvalds, (C) 1997 Ingo Molnar
6 * IRQ/IPI changes taken from work by Thomas Radke
7 * <tomsoft@informatik.tu-chemnitz.de>
10 #include <asm/apicdef.h>
11 #include <asm/irq_vectors.h>
13 extern int pin_map_size
;
14 extern int first_free_entry
;
16 static inline int irq_canonicalize(int irq
)
18 return ((irq
== 2) ? 9 : irq
);
21 #ifdef CONFIG_X86_LOCAL_APIC
22 # define ARCH_HAS_NMI_WATCHDOG
25 #ifdef CONFIG_4KSTACKS
26 extern void irq_ctx_init(int cpu
);
27 extern void irq_ctx_exit(int cpu
);
28 # define __ARCH_HAS_DO_SOFTIRQ
30 # define irq_ctx_init(cpu) do { } while (0)
31 # define irq_ctx_exit(cpu) do { } while (0)
33 # define __ARCH_HAS_DO_SOFTIRQ
37 #ifdef CONFIG_IRQBALANCE
38 extern int irqbalance_disable(char *str
);
41 #ifdef CONFIG_HOTPLUG_CPU
42 #include <linux/cpumask.h>
43 extern void fixup_irqs(cpumask_t map
);
46 extern unsigned int do_IRQ(struct pt_regs
*regs
);
47 extern void init_IRQ(void);
48 extern void native_init_IRQ(void);
50 /* Interrupt vector management */
51 extern DECLARE_BITMAP(used_vectors
, NR_VECTORS
);
53 #endif /* ASM_X86__IRQ_H */