diff options
Diffstat (limited to 'kernel/irq/handle.c')
| -rw-r--r-- | kernel/irq/handle.c | 18 | 
1 files changed, 17 insertions, 1 deletions
| diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index aeb6e391276c..fc4e906aedbd 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c | |||
| @@ -132,7 +132,7 @@ irqreturn_t handle_IRQ_event(unsigned int irq, struct pt_regs *regs, | |||
| 132 | handle_dynamic_tick(action); | 132 | handle_dynamic_tick(action); | 
| 133 | 133 | ||
| 134 | if (!(action->flags & IRQF_DISABLED)) | 134 | if (!(action->flags & IRQF_DISABLED)) | 
| 135 | local_irq_enable(); | 135 | local_irq_enable_in_hardirq(); | 
| 136 | 136 | ||
| 137 | do { | 137 | do { | 
| 138 | ret = action->handler(irq, action->dev_id, regs); | 138 | ret = action->handler(irq, action->dev_id, regs); | 
| @@ -249,3 +249,19 @@ out: | |||
| 249 | return 1; | 249 | return 1; | 
| 250 | } | 250 | } | 
| 251 | 251 | ||
| 252 | #ifdef CONFIG_TRACE_IRQFLAGS | ||
| 253 | |||
| 254 | /* | ||
| 255 | * lockdep: we want to handle all irq_desc locks as a single lock-class: | ||
| 256 | */ | ||
| 257 | static struct lock_class_key irq_desc_lock_class; | ||
| 258 | |||
| 259 | void early_init_irq_lock_class(void) | ||
| 260 | { | ||
| 261 | int i; | ||
| 262 | |||
| 263 | for (i = 0; i < NR_IRQS; i++) | ||
| 264 | lockdep_set_class(&irq_desc[i].lock, &irq_desc_lock_class); | ||
| 265 | } | ||
| 266 | |||
| 267 | #endif | ||
