diff options
Diffstat (limited to 'include/linux/interrupt.h')
| -rw-r--r-- | include/linux/interrupt.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index f58a0cf8929a..0702c4d7bdf0 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h | |||
| @@ -14,6 +14,8 @@ | |||
| 14 | #include <linux/irqflags.h> | 14 | #include <linux/irqflags.h> |
| 15 | #include <linux/smp.h> | 15 | #include <linux/smp.h> |
| 16 | #include <linux/percpu.h> | 16 | #include <linux/percpu.h> |
| 17 | #include <linux/irqnr.h> | ||
| 18 | |||
| 17 | #include <asm/atomic.h> | 19 | #include <asm/atomic.h> |
| 18 | #include <asm/ptrace.h> | 20 | #include <asm/ptrace.h> |
| 19 | #include <asm/system.h> | 21 | #include <asm/system.h> |
| @@ -107,15 +109,15 @@ extern void enable_irq(unsigned int irq); | |||
| 107 | 109 | ||
| 108 | #if defined(CONFIG_SMP) && defined(CONFIG_GENERIC_HARDIRQS) | 110 | #if defined(CONFIG_SMP) && defined(CONFIG_GENERIC_HARDIRQS) |
| 109 | 111 | ||
| 110 | extern cpumask_t irq_default_affinity; | 112 | extern cpumask_var_t irq_default_affinity; |
| 111 | 113 | ||
| 112 | extern int irq_set_affinity(unsigned int irq, cpumask_t cpumask); | 114 | extern int irq_set_affinity(unsigned int irq, const struct cpumask *cpumask); |
| 113 | extern int irq_can_set_affinity(unsigned int irq); | 115 | extern int irq_can_set_affinity(unsigned int irq); |
| 114 | extern int irq_select_affinity(unsigned int irq); | 116 | extern int irq_select_affinity(unsigned int irq); |
| 115 | 117 | ||
| 116 | #else /* CONFIG_SMP */ | 118 | #else /* CONFIG_SMP */ |
| 117 | 119 | ||
| 118 | static inline int irq_set_affinity(unsigned int irq, cpumask_t cpumask) | 120 | static inline int irq_set_affinity(unsigned int irq, const struct cpumask *m) |
| 119 | { | 121 | { |
| 120 | return -EINVAL; | 122 | return -EINVAL; |
| 121 | } | 123 | } |
| @@ -251,9 +253,6 @@ enum | |||
| 251 | BLOCK_SOFTIRQ, | 253 | BLOCK_SOFTIRQ, |
| 252 | TASKLET_SOFTIRQ, | 254 | TASKLET_SOFTIRQ, |
| 253 | SCHED_SOFTIRQ, | 255 | SCHED_SOFTIRQ, |
| 254 | #ifdef CONFIG_HIGH_RES_TIMERS | ||
| 255 | HRTIMER_SOFTIRQ, | ||
| 256 | #endif | ||
| 257 | RCU_SOFTIRQ, /* Preferable RCU should always be the last softirq */ | 256 | RCU_SOFTIRQ, /* Preferable RCU should always be the last softirq */ |
| 258 | 257 | ||
| 259 | NR_SOFTIRQS | 258 | NR_SOFTIRQS |
| @@ -465,4 +464,10 @@ static inline void init_irq_proc(void) | |||
| 465 | 464 | ||
| 466 | int show_interrupts(struct seq_file *p, void *v); | 465 | int show_interrupts(struct seq_file *p, void *v); |
| 467 | 466 | ||
| 467 | struct irq_desc; | ||
| 468 | |||
| 469 | extern int early_irq_init(void); | ||
| 470 | extern int arch_early_irq_init(void); | ||
| 471 | extern int arch_init_chip_data(struct irq_desc *desc, int cpu); | ||
| 472 | |||
| 468 | #endif | 473 | #endif |
