]> rtime.felk.cvut.cz Git - zynq/linux.git/blob - arch/arm/include/asm/irq.h
Apply preempt_rt patch-4.9-rt1.patch.xz
[zynq/linux.git] / arch / arm / include / asm / irq.h
1 #ifndef __ASM_ARM_IRQ_H
2 #define __ASM_ARM_IRQ_H
3
4 #define NR_IRQS_LEGACY  16
5
6 #ifndef CONFIG_SPARSE_IRQ
7 #include <mach/irqs.h>
8 #else
9 #define NR_IRQS NR_IRQS_LEGACY
10 #endif
11
12 #ifndef irq_canonicalize
13 #define irq_canonicalize(i)     (i)
14 #endif
15
16 /*
17  * Use this value to indicate lack of interrupt
18  * capability
19  */
20 #ifndef NO_IRQ
21 #define NO_IRQ  ((unsigned int)(-1))
22 #endif
23
24 #ifndef __ASSEMBLY__
25 #include <linux/cpumask.h>
26
27 struct irqaction;
28 struct pt_regs;
29 extern void migrate_irqs(void);
30
31 extern void asm_do_IRQ(unsigned int, struct pt_regs *);
32 void handle_IRQ(unsigned int, struct pt_regs *);
33 void init_IRQ(void);
34
35 #ifdef CONFIG_MULTI_IRQ_HANDLER
36 extern void (*handle_arch_irq)(struct pt_regs *);
37 extern void set_handle_irq(void (*handle_irq)(struct pt_regs *));
38 #endif
39
40 #ifdef CONFIG_SMP
41 extern void arch_trigger_cpumask_backtrace(const cpumask_t *mask,
42                                            bool exclude_self);
43 #define arch_trigger_cpumask_backtrace arch_trigger_cpumask_backtrace
44 #endif
45
46 static inline int nr_legacy_irqs(void)
47 {
48         return NR_IRQS_LEGACY;
49 }
50
51 #endif
52
53 #endif
54