x86: use nr_irqs
[linux-2.6/x86.git] / include / asm-x86 / irq.h
blob2a130c44f5dea1922fe0019133d5374ffe236cda
1 #ifndef ASM_X86__IRQ_H
2 #define ASM_X86__IRQ_H
3 /*
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>
8 */
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
23 #endif
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
29 #else
30 # define irq_ctx_init(cpu) do { } while (0)
31 # define irq_ctx_exit(cpu) do { } while (0)
32 # ifdef CONFIG_X86_64
33 # define __ARCH_HAS_DO_SOFTIRQ
34 # endif
35 #endif
37 #ifdef CONFIG_IRQBALANCE
38 extern int irqbalance_disable(char *str);
39 #endif
41 #ifdef CONFIG_HOTPLUG_CPU
42 #include <linux/cpumask.h>
43 extern void fixup_irqs(cpumask_t map);
44 #endif
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 */