2a130c44f5dea1922fe0019133d5374ffe236cda
[deliverable/linux.git] / include / asm-x86 / irq.h
1 #ifndef ASM_X86__IRQ_H
2 #define ASM_X86__IRQ_H
3 /*
4 * (C) 1992, 1993 Linus Torvalds, (C) 1997 Ingo Molnar
5 *
6 * IRQ/IPI changes taken from work by Thomas Radke
7 * <tomsoft@informatik.tu-chemnitz.de>
8 */
9
10 #include <asm/apicdef.h>
11 #include <asm/irq_vectors.h>
12
13 extern int pin_map_size;
14 extern int first_free_entry;
15
16 static inline int irq_canonicalize(int irq)
17 {
18 return ((irq == 2) ? 9 : irq);
19 }
20
21 #ifdef CONFIG_X86_LOCAL_APIC
22 # define ARCH_HAS_NMI_WATCHDOG
23 #endif
24
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
36
37 #ifdef CONFIG_IRQBALANCE
38 extern int irqbalance_disable(char *str);
39 #endif
40
41 #ifdef CONFIG_HOTPLUG_CPU
42 #include <linux/cpumask.h>
43 extern void fixup_irqs(cpumask_t map);
44 #endif
45
46 extern unsigned int do_IRQ(struct pt_regs *regs);
47 extern void init_IRQ(void);
48 extern void native_init_IRQ(void);
49
50 /* Interrupt vector management */
51 extern DECLARE_BITMAP(used_vectors, NR_VECTORS);
52
53 #endif /* ASM_X86__IRQ_H */
This page took 0.032859 seconds and 4 git commands to generate.