diff options
Diffstat (limited to 'include/linux/irq.h')
| -rw-r--r-- | include/linux/irq.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index c64f3cc7e870..52fc4052a0ae 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
| @@ -141,6 +141,7 @@ struct irq_chip { | |||
| 141 | * @pending_mask: pending rebalanced interrupts | 141 | * @pending_mask: pending rebalanced interrupts |
| 142 | * @dir: /proc/irq/ procfs entry | 142 | * @dir: /proc/irq/ procfs entry |
| 143 | * @affinity_entry: /proc/irq/smp_affinity procfs entry on SMP | 143 | * @affinity_entry: /proc/irq/smp_affinity procfs entry on SMP |
| 144 | * @name: flow handler name for /proc/interrupts output | ||
| 144 | * | 145 | * |
| 145 | * Pad this out to 32 bytes for cache and indexing reasons. | 146 | * Pad this out to 32 bytes for cache and indexing reasons. |
| 146 | */ | 147 | */ |
| @@ -165,8 +166,9 @@ struct irq_desc { | |||
| 165 | cpumask_t pending_mask; | 166 | cpumask_t pending_mask; |
| 166 | #endif | 167 | #endif |
| 167 | #ifdef CONFIG_PROC_FS | 168 | #ifdef CONFIG_PROC_FS |
| 168 | struct proc_dir_entry *dir; | 169 | struct proc_dir_entry *dir; |
| 169 | #endif | 170 | #endif |
| 171 | const char *name; | ||
| 170 | } ____cacheline_aligned; | 172 | } ____cacheline_aligned; |
| 171 | 173 | ||
| 172 | extern struct irq_desc irq_desc[NR_IRQS]; | 174 | extern struct irq_desc irq_desc[NR_IRQS]; |
| @@ -272,12 +274,6 @@ extern void fastcall handle_percpu_irq(unsigned int irq, struct irq_desc *desc); | |||
| 272 | extern void fastcall handle_bad_irq(unsigned int irq, struct irq_desc *desc); | 274 | extern void fastcall handle_bad_irq(unsigned int irq, struct irq_desc *desc); |
| 273 | 275 | ||
| 274 | /* | 276 | /* |
| 275 | * Get a descriptive string for the highlevel handler, for | ||
| 276 | * /proc/interrupts output: | ||
| 277 | */ | ||
| 278 | extern const char *handle_irq_name(irq_flow_handler_t handle); | ||
| 279 | |||
| 280 | /* | ||
| 281 | * Monolithic do_IRQ implementation. | 277 | * Monolithic do_IRQ implementation. |
| 282 | * (is an explicit fastcall, because i386 4KSTACKS calls it from assembly) | 278 | * (is an explicit fastcall, because i386 4KSTACKS calls it from assembly) |
| 283 | */ | 279 | */ |
| @@ -329,7 +325,12 @@ extern void | |||
| 329 | set_irq_chip_and_handler(unsigned int irq, struct irq_chip *chip, | 325 | set_irq_chip_and_handler(unsigned int irq, struct irq_chip *chip, |
| 330 | irq_flow_handler_t handle); | 326 | irq_flow_handler_t handle); |
| 331 | extern void | 327 | extern void |
| 332 | __set_irq_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained); | 328 | set_irq_chip_and_handler_name(unsigned int irq, struct irq_chip *chip, |
| 329 | irq_flow_handler_t handle, const char *name); | ||
| 330 | |||
| 331 | extern void | ||
| 332 | __set_irq_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained, | ||
| 333 | const char *name); | ||
| 333 | 334 | ||
| 334 | /* | 335 | /* |
| 335 | * Set a highlevel flow handler for a given IRQ: | 336 | * Set a highlevel flow handler for a given IRQ: |
| @@ -337,7 +338,7 @@ __set_irq_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained); | |||
| 337 | static inline void | 338 | static inline void |
| 338 | set_irq_handler(unsigned int irq, irq_flow_handler_t handle) | 339 | set_irq_handler(unsigned int irq, irq_flow_handler_t handle) |
| 339 | { | 340 | { |
| 340 | __set_irq_handler(irq, handle, 0); | 341 | __set_irq_handler(irq, handle, 0, NULL); |
| 341 | } | 342 | } |
| 342 | 343 | ||
| 343 | /* | 344 | /* |
| @@ -349,7 +350,7 @@ static inline void | |||
| 349 | set_irq_chained_handler(unsigned int irq, | 350 | set_irq_chained_handler(unsigned int irq, |
| 350 | irq_flow_handler_t handle) | 351 | irq_flow_handler_t handle) |
| 351 | { | 352 | { |
| 352 | __set_irq_handler(irq, handle, 1); | 353 | __set_irq_handler(irq, handle, 1, NULL); |
| 353 | } | 354 | } |
| 354 | 355 | ||
| 355 | /* Handle dynamic irq creation and destruction */ | 356 | /* Handle dynamic irq creation and destruction */ |
