Commit | Line | Data |
---|---|---|
77ef50a5 VN |
1 | #ifndef ASM_X86__IRQ_H |
2 | #define ASM_X86__IRQ_H | |
22067d45 TG |
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 | ||
0799e432 YL |
13 | extern int pin_map_size; |
14 | extern int first_free_entry; | |
15 | ||
22067d45 TG |
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 | |
96a388de | 29 | #else |
22067d45 TG |
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); | |
96a388de | 44 | #endif |
22067d45 TG |
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 | ||
77ef50a5 | 53 | #endif /* ASM_X86__IRQ_H */ |